I took a long break from software and started learning politics, philosophy, and history, and eventually came to the conclusion that most of the world's problems are social/political and won't be fixed by technology.
And in many ways, the type of work we do directly cause harm to people. (Unfortunately, with the long gap in my career I need to build up work experience before switching to anything else)
How can I continue to work at a corporation that directly causes wealth inequality? Sure, I might personally enjoy working on math and software related problems. But why is my own intellectual curiosity more important than whether someone else gets to eat?
I don't want to just donate to charities, I want to end systemic problems that lead to charities needing to exist in the first place.