E.S.
Does it just happen in the morning or has it happened at different times? I had a pain like this when my daughter was 2 months old and I thought it was from me breastfeeding. Turns out, I had to have my gallbladder removed. I had a strange pain and it felt like it was in my chest area and back. Hopefully you are just sleeping different and will get better soon. Good luck.