I'm honestly not sure how you can make it past say 10 years in the industry without having the mental skills of a Buddhist Monk. Coding isn't too bad for the most part, but on top of that it's like you have to manage the product owners / managers, coach your team mates, and put up with company politic dribble. While you're doing all that people are constantly changing their minds, making you task switch to jump on fi…
The grass always seems greener. Dev jobs are objectively very comfortable. Problems exist in all industries/occupations, who's to say they aren't equally frustrating.
The 'objective comforts' you get at some places, if you mean stuff like pingpong and free beers and lunchtime yoga, are sticking plasters that don't actually get much take-up. The only real 'objective comfort' is the high pay, which makes the rest of your life more comfortable, but doesn't make the day-to-day experience of the job any less frustrating, hence developers 'burning out' so often.