Gas and poops

Alicia
I am 37 weeks and tend to wake up at least 4 to 5 times a week around 3 to 5 with horrible gas followed by bathroom time. My stomach gets hard as a rock and the gas hurts. Anyone else gets this?