Dizzy and a migraine after sex/orgasm

In the evening yesterday I had sex with a small headache. Usually sex cures it, but this time it went from a headache to a huge migraine. With the migraine came the sensitivity to light and sound, also nausea. I felt better after about 3 hours and some strong meds. Then after solo orgasming I feel really dizzy and nauseous. Anyone have insight?