Rectal pain/pressure during sex?

Hi everyone!

Recently during sex I have been having sever pain in my pelvic region and also pain and pressure in my rectum...

Thought I needed a big fart so I told my other half to stop and told him why and tired to you know fart but there was nothing there 😂😂

Is this something anyone had before?? Like the feeling of needing to fart but not?