This sounds like you are having migraine headache.It is a form of vascular headache and is by high stress periods,hormonal changes,irregular sleep,food habits,bad lifestyles etc..There can be various triggering agents.
Another possibility is of that it can be mixed tension migraine that is a headache with features of both tension(stress)and migraine headaches.Stress is an important causative factor of such headaches.
You need MRI or CT scan of head to rule out other causes of headache.Blood tests and/or Lumbar puncture (spinal tap) may be required.
I advice you to see your neurologist for the physical examination & then take the treatment
The most likely cause seems to be migraine or a tension headache.Tension headache is the most common type of headache.It can be caused by tightened muscles in the back of the neck and scalp or in most cases the cause is unknown.
I wish for your good health.