Hi sir,
The most common cause of eye pain or headache is need for glasses or change in glass power. If you haven't got your glass power checked in last 6 months please get that done. Also when you turn 40, need for near vision glasses also arises.
Secondly, more screen time, not wearing sunglasses while in car, could increase the chance of dry eyes. Excessive screen time can result in dryness.
Rarely, the eye pain and headache could be associated with increased eye pressure
Next Steps
Get your glass power checked with an ophthalmologist. Dry eye evaluation and management. Eye pressure check up