Period Poop (TMI)

Is there a way to ease the pain? I get this weird cramp and I have to run to the bathroom— to poop (diarrhea). It kinda hurts if I hold it in—lower abdomen.