Is it normal to get a migraine during masturbation?

I've noticed recently that while getting myself off, I get a migraine during my climax and I would think it's just because of the excitement and pleasure but then it sticks around for a few days, this has also happened before during foreplay with an ex and I was just wondering if anyone else has ever experienced this?! It's getting to be annoying because I can't even enjoy it now!