I can sympathize on the migraines, my trigger is fluorescent light for an extended time or any type of artificial sweeteners. If it's a full on migraine I'm down for the next 24 hours and a dark quiet room is my only reprieve.
My long code review sessions used to have my eyes bugging out where I used to get a 'focus circle' in the middle of my vision after hours. Kind of where the center of my vision is clear but the outer ring is a bit blurry and it makes reading things quickly a pain as it's easy to lose what line I'm on.
Something I'll throw out there that's really helped me a lot with spending a lot of time in front of the computer screen, Gunnar glasses. They're specifically meant for viewing computer screens and help with eye fatigue & headaches associated with viewing monitors. Might be worth a shot to see if it helps, I picked my pair up for around $40 from Amazon about 2 or 3 years ago. Here's a link to their site:
https://gunnar.com/