Thank you for your query on Healthcare Magic.
The pain is due to migraine
or frontal sinusitis
Did you get frequent episodes like this in the past?
Any family history of migraine?
Is pain associated with vomiting
or lights in the eyes?
Detailed history is imortant and investigations like x ray sinuses, CT scan brain and paranasal sinuses
to be done to know the cause for pain.
Consult a Neuro Physician for clinical examination and investigations.
Hope I have answered your query.