Sex hurts

So when me and my boyfriend have sex, I feel like im wripping (sometimes) we make sure we're luvricated and everything but I get like a little cut between my vagina and anus and it hurts when I while myself and when I have sex, this just happenes sometimes and it's really irritating, I was wondering if this happens to any of y'all, and how it happens and how I can heal it