as far as you have described here , it is pointing toward some eye pathology causing headache like glaucoma
which can be angle closure or open angle, or it may be some other pathology of eye .so you should consult a eye specialist immediately and if required then go for intra ocular pressure measurement , CT scan
head and neck and other eye examination. it is better to follow your yreating doctor.
wish you all the best.