Hi...It can be a muscle spasm due to awkward sleeping posture or sleeping more on one side.
Next Steps
kindly go in for an ice application for 15 mins twice a day...
Health Tips
if you feel the pain is progressing and interferes with your breathing causing pain and discomfort..Kindly visit a physio ASAP