Some of my most trying encounters have been dealing with prolific people with bad ideas or sketchy ethics. People who think writing a pile of the wrong code will make things better.
Running as fast as you can in the wrong direction helps nobody. It’s the difference between being efficient and being effective. You need to step back and think about what you’re doing frequently.
"self destructive" is not even the worst. The worst is when they harm the lives of people around them.
People who are behaving in unsustainable ways and have employees reporting to them tend to be pretty awful managers. I've worked in teams run by such managers - it's a shitshow. When employees are routinely crying in the bathroom because of a single person, it's certainly not just "self" destructive anymore.
In reference to the movie "Election", don't be a Tracy Flick in the workplace.