It's been one of the most important lessons I've had to learn in my career and am still learning: not to care so much about everything.
That said, working on something that I care about is also one of the aspects of my job I love the most. I think the trick is to carefully pick a few things that you care about and focus on that, but then also to have a far more hands-off approach for pretty much everything else, and let others shape those things to their visions.
As I've grown as a developer, I've become less personally attached to the products I work on. I still care that it's a quality product, and that it's stable, tested, etc. But I don't attach it to my personality or my self-worth. Ultimately what happens to it is out of your control, (assuming it's not a 100% solo project) so it's dangerous to have that attachment. I'm not sure that caring deeply about a project actually improves it in a meaningful way.
Also, this is a nice post. Sharing real stories about burnout and helping others understand it is great.