I've been working at an office as a software developer for a few years, and the environment has been getting progressively worse. The boss of my department has been routinely calling department meetings to yell at everyone. These almost always include threatening to fire people if we don't work hard enough, which to him means coming in early and staying late, regardless of how much work we're getting done. Everyone in the office is constantly stressed, on edge, and scared of him. The other managers don't do anything to address his behavior, and always support him if pressed. I've begun to dread coming into work and usually feel anxious when I'm there, or if I need to leave on time.
I know I need to get a new job, I've applied to and been rejected by a few places. But the rejections, along with the work environment, have made applying to jobs feel hopeless and demoralizing. I know it would help to see a therapist, but I can't find any that are available when I'm not working. And taking time off every week or two to one would not be allowed, not to mention that it would cut into the PTO I could be using for interviews.
How do I deal with my mental health and finding a new job when my work is making both of those things much more difficult?