Horrible headaches

Jan
The last 2 nights my husband and I have had sex. As soon as I had an orgasm I got a horrible horrible headache. Tonight was so bad I had to ask him to stop. Has anyone had this problem or know whats going on????