painful sex

When me and my boyfriend have sex it's always great, but sometimes probably around two weeks prior to
​ my period it hurts it feels as if he's hitting something. It doesn't hurt to bad but it feels weird. We have sex A Lot, four to five times a week so it's odd this is happening. Is there a reason for this?