Thanks for the query,
The possibility could be that of a migraine headache
. Better to get a CT sacn done to rule out other causes of headache. If this is normal, you may take medications like amitriptline, nor-triptline etc along with regular food and sleep habit.
Hope this helps