I’ve been cramping during sex?

My boyfriend and I had sex it felt good until I was cramping badly in the middle of it that we had to stop. I’m not on my period and I already ovulated this month.