This is 100% why we need a strong social safety net and/or UBI in the USA. Imagine if you could just quit a job like this, take a few months off, and start looking for a new job, without worrying about becoming bankrupt or homeless? The economy would thrive as individuals were free to move about the labor market, take time off to re-skill periodically, etc.
I was in a bad situation in a job, completely burned out. It was only when I had the opportunity to move in with family that I could quit and get my life back together. If I had the ability to just quit and spend some time collecting myself a year earlier, who knows how much happier and healthier I'd be, and how much sooner I'd have been able to return to productivity?