KM thanks for the detailed answer.
I’m sure the problem is on the software side because I had m1 MacBook before a year and I hadn’t this eyestrain. Also, it occurs also in my external monitor, which I don’t have problem with it in my PC with Linux running.
This is the laptop I have but with M2 Pro instead of M2 Max.
I’m not sure what is the problem but I’m sure it’s related to software and there is a solution for that