Probably a stupid question

Me and my SO we’re having sex and it started hurting really bad but I didn’t say anything and just buried my head in his chest (he was about to cum so I didn’t wanna interrupt it) it was on my right side near my belly button up near my ribs and towards my hips has anybody else ever had that happen!