Pain during sex?

I started having these awful period like cramps during sex, so bad I had to stop I started crying and felt like I was going to vomit.

I was thinking it could be my IBS? But I have no idea. It went away like 10 minutes after we stopped.