Help really painful headaches off masturbating

So I’m on my period right now and I always get really horny an can’t resist not masturbating an I’ve masturbated before on my period and haven’t had this problem but this week when I’ve been rubbing my clit I have been getting really painful headaches at the lower , left back side of my head , they hurt real bad an I know it isn’t because of dehydration because I have drank loads today , can someone help me out please , would be much appreciated ❤️