I have seen enough examples of guys prioritizing mental health over money after a certain point.

A friend made mid-8 figures after exit and became a highschool math teacher.

In general: if money was everything, wouldn't the top faculty in every top school be quitting and joining FAANGs ? Who would want a professor's job, making a mid-level SWE amount?