Yeah I used to get those EVERY time I orgasmed, they're called coital cephalalgia. It felt like my brain was throbbing smashing into my skull. Literally thought I was dying.
I just randomly stopped getting them one day but I hear they come on an off in cycles.