Masturbated rough

I was using a toy yesterday and i think used it rough on me because I’m still hurting and saw and still seeing some blood. My period is coming in 4 days so I’m not sure if this is it or Or because of the result of rough play with my toy. Would anyone know? Also what can I do to alleviate the pain?