This kind of headache might be due to lack of sound sleep , sleep apnea,stress, sinus problems , high BP etc....
But to rule out serious causes ...
Certain investigation are required.. MRI is one of them.
If you actually want to diagnose the exact cause , please follow the advice of your neurologist..
Timely diagnosis is must for proper and effective treatment.
Next Steps
please contact neurologist for through physical check up and needful investigation like MRI