Sex story

I was trying to have sex with my bf a few days before my cycle was coming and I was super tense couldn’t relax, and It would hurt while trying. Has this ever happened to anyone? This was the first time It happened, idk if It was because of the cyst i get on my ovaries before my cycle comes or what but It was just such an uncomfortable feeling.