I do have that from time to time both around O and around AF (almost every month around AF).
Since I've been BF and my cycle stopped I am having the opposite problem so I think it has to be hormonal.
There's also the thing where sometimes you have diarrhea just before you give birth, so hormones have to play some part.
I hope you're feeling better soon TTC!!