I can understand your problem.
but would like to know is there any particular side that is involved in the headache or is the whole head involved.
since you can't tolerate light, it could be of migraine origin.
in migraine usually but not necessarily one side of the head is involved.
you would want to get your eye checked.
avoid triggering factors which cause the headache, it is found that certain foods or sounds etc start the headache.
for further management visit a physician.