It can be because lowered oestrogen affects bile production, which in turn affects
digestion. Also, temperature changes (from flushes) can make it more difficult
to sleep, and anyway it’s hard to get a proper night’s sleep with grumbling
I’d also suggest checking with your doctor to ensure it’s not your gallbladder playing up.