So true! I also lost about 2 years and my physical and mental health really deteriorated and 5 years later I'm still dealing with fallout.
I was a manager under a toxic director, so I had the added pressure of making sure my team was all right. After most of them had found positions elsewhere, I finally left.
For future reference, having done it both ways - finding a good out for yourself(and putting your oxygen mask on first) is usually better for the people under you too, as it shows them what they should be doing AND gives them (often) a place they can reach out to and land.