Why? I never use dark mode and never have eye problems. Sometimes sits for like 20 hours coding. All I do is keep the room well lit. I'm in my 30s.
I remember having eye straing a few times like a decade ago, but I guess that was from over eating sugar or something. If you have eye strain I'd guess it has some other reason than the screen or how you treat your eyes. Or maybe you need better glasses.
Edit: Dark mode would cause your pupils to dilate, maybe that is the reason for the eye strain people here see? Bright room with bright room keeps pupils small and maybe reduces strain.