Why Am I Bleeding?

I am during my fertility window and for the past day have been bleeding off and on sometimes like this sometimes it’s thicker or more of a brown..anyone know what could be causing this?

It also is with sharp pains and whenever I masturbate or have sex it’s incredibly painful