If you are no problem with the macBook Pro, I guess the problem is the Framework laptop 12th Gen’s reflective screen. And in my case, the matte screen filter definitely helped me! You must buy it!
For any other recommendations, I got an advice from a doctor in the area called functional medicine after showing my biological tests to the doctor. And the elimination of the blue spectrum in the evening (filters for electronics, special bulbs, filter glasses, foils) was a part of the advice.
I am considering buying yellow glasses like this. I think Dave Asprey is famous about this topic.