How are you so sure that your problems at work really stem from work, instead of being symptomatic of a deeper personal problem you might externalizing onto work? Is the coat of looking for a new job really that high? If your problem keeps worsening, that may eventually be eclipsed by the need to maintain your mental health. If not, then why can't you resolve the problems of work at work?
I'm guessing you're one of those lucky ones with a sane manager that values your productivity, nurtures growth by rewarding good work, and keeps a good tab on past accomplishments whilst protecting you when others make unrealistic or untimely demands of you, and intervenes only with actual wisdom rather than nonsensical judgement or belittling comments.
Consider yourself one of the few lucky ones. The rest of us have to deal with some degree of micromanagement, office politics, and other such nonsense on an almost daily basis.
I try to count my blessings every day. Also, in my limited experience, you find these jobs through past colleagues you trust to look out for your well-being.