I agree, you could have pulled a muscle.
I had times where I rolled over (yep, I managed it now and again) in the night and I was in agony as I pulled a muscle. It happened a few times.
It should ease up in a day or two, but if you're not happy, speak to your MW. xx