Every night I wake with rotten gut

Hi everyone

For the last few weeks of my pregnancy I have been exhausted so going to bed around 8 or 8:30pm, and I seem to be waking up EVERY night around 1-3 am with wretched tummy ache and diarrhea. Wanted to know if anyone else is experiencing this and is normal or if I should be checking in with midwife / doc? After I go to the washroom the tummy rot goes away and I can go back to sleep but it’s annoying nonetheless! Anybody else?