It seems from the history that you are having recurrent headache with discomfort in the eyes.
This can be because of eye problems like refractive error
or because of primary headache like migraine
Hence this requires evaluation to find out the underlying cause and treatment accordingly.
Hence I advice you to consult your doctor for examination and treatment accordingly.