blue light filtering glasses are quite effective and might be more convenient than using sunglasses, which I also used to do
[1] https://www.aao.org/eye-health/tips-prevention/are-computer-...
What helped me a little bit is changing to a VA panel. They have higher contrast, so you can lower the backlight brightness and still see well.
Like the GP I had serious eye-strain issues that caused headaches and photosensitivity. The new glasses eliminated the issues almost entirely.
I am not 100% sure though if this is caused by the filter or by my previous pair being really bad.