Work for a boring company that provides a core service and does not ruffle feathers or cause trouble to society. I write Angular/Python apps for a company that sells payroll products. Its not the sexiest job in the world but the company needs tech people, it operates pretty ethically, I am paid reasonably well, and the team does not cause unnecessary stress day to day.
Government tech jobs are probably similar depending on department. You probably won't be contributing to the downfall of society in many govt branches but instead providing a reasonable service to society. The pay is probably less though.