Only your doctor can try to help you with this, but here is an article on Sex Headaches, about this type of pain, at the Mayo Clinic. On the left you will see links to other parts of the article in blue.
It's a start, you aren't alone with this, and at least there are possible treatments. I hope something can be found to eliminate them.
Write down as much as you can recall about symptoms, how long you've had them, approximately when they began, other medications or substances you are taking, as much as you can remember, and the questions that you wish to ask your doctor.
I wish you the best, good luck.
Important:
We hope you find this general health information helpful. Please note however, that this Q&A is meant to support not replace the professional medical advice you receive from your doctor. No information in the Answers above is intended to diagnose or treat any condition. The views expressed in the Answers above belong to the individuals who posted them and do not necessarily reflect the views of Remedy Health Media. Remedy Health Media does not review or edit content posted by our community members, but reserves the right to remove any material it deems inappropriate.