I’ve worked as a developer since 1985 and been very happy at every job. Finding a tiny company where you can work on interesting problems will put more “happiness under the curve” than trying to suffer now so you can retire early.
“Do something you love and you’ll never work a day in your life.”
But working on interesting problems can also be seen as providing the value into society which can help you make money