It may be strain.
It will take some time to recover.
Don't make big arm movements during this time.
Take your time.
If you are over 40 years old, consider scapulohumeral periarthritis and go to the hospital for examination.
If this answer can help you, please adopt it in time. Oh, thank you!