Stomach aches

I'm at the end of my fertile window, and the past two nights I've been woken up with a stomach ache resulting in diarrhea. I thought maybe yesterday I had a stomach bug, but it only lasted a couple of hours. Here we go with round two. Yuck. What the heck is going on?!