Be proud of yourself for figuring it it out, AND taking steps to improve your situation
I empathize with your current situation, so believe me when I say " I understand"...
It can be extremely draining to run around in circles with ZERO benefit, at the end of the day, a paycheck is not worth the torture...
Good news?
You're STILL standing! Now THAT'S an accomplishment of note
I hope you find a new FULFILLING job soon me friend