I had what you described. This correlated significantly with reduced sleep / increased stress at work / increased blood pressure. Eye strain and headache would come within a couple of hours.
Some time ago I prioritised sleep, inner calm, strict 9-5 work etc. Both blood pressure got better and eyestrain / headaches went away soon after.