Buying a bike and riding it regularly was my single best investment in terms of physical and mental health. A close second would be resistance training equipment, but this depends on what kind of resistance training you decide to do.
I'd also say that part of the OP's issues stem from an expectation that one should always be passionate or excited about their work. Especially in tech, there's this weird idea that every job someone holds is something that resonates with them personally.
I think this expectation is strange and unreasonable. I think it's perfectly ok to view your job as "just a job". But if you truly want to pursue a job that resonates with you, you have a significant financial buffer to facilitate a career-change. As someone who didn't shift into programming until their mid-30s, I think mid-30s career changes are perfectly fine, and almost expected in a turbulent economy.