Never really found eye strain to be a problem, but I have made sure to use a decent quality screen for the last 20 years. I think it would be a problem if I were still using the glowing green CRT terminals like 30 years ago. Additional things like a really good chair, proper posture, minimising distractions etc all help.
I don't like to code for more than 4-5 hours at a stretch as that seems to be my limit before I start making idiot mistakes. On physical health grounds I will try and force a break even more frequently than that though. Just getting up, moving around, making coffee, etc helps keep things fresh. I can still be thinking about code whilst taking a break, even if not writing it.