Sex headaches

Marlaina
Been trying to conceive for 5 month now and was treated recently with Flagyl for a bacterial infection. My husband and I having sex and right before I climaxed I got an instant migraine. It was intense enough that I got nauseous and was sensitive to light. I haven't taken the medication for 5 days and its still happening. Has anyone else had this problem??