Orgasms

So I was having an orgasm and I didn't stop when I reached my point of climax from myself and then I blacked out and when I woke up I had a beating headache so what does that mean? It's never happened before.