Tummy ache when sleeping

Autumn
Does anybody else have a tummy ache when they are sleeping? I sleep on my side and sometimes when I wake up my tummy aches like I slept wrong. I sleep with pillow already between my legs and have tried one under my stomach as well but nothing seems to help.