Thanks for the query,
I have noted your problem
The possibilities could be 1. Migraine
2. Benign coital headache 3. Remote possibity of vascular malforamation in the brain
You need evaluation by a neurologist
who will guide you through clinical and lab investigations. Better to get a scan to rule out secondary causes of headache.
Your treatment will depend upon the cause
Hope this clarifies