Earlier quoted context omitted.
I understand, but you might want to ask why you find coding so taxing on your mental health. Maybe coding per se doesn't cause the problem, but the rest of the job or work environment. I don't get the same pleasure from writing code that I did two or three decades ago, but I don't find it particularly frustrating or bad for my mental health, either. Perhaps you can come to terms with that. Any job will have frustrati…
I feel that most of it is pointless. I'm past the stage where I can argue with people over stupid engineering architecture decisions. It's all full of BS and ego. Most people would rather die defending their favorite language/stack/framework than change their POV. I'm tired of wasting my time on countless meetings trying to "convince my engineering team-mates to write tests/use strongly typed languages/avoid new-age…
I gave up with the technical arguments a long time ago, too much effort trying to swim against the current. You get less of that outside of the software industry -- I worked for a long time in enterprise logistics where the team had to focus a lot more on solving business problems and a lot less on "best practices" or the latest language or framework. Not exciting but not as likely to induce rage, either.