I had a bad boss. I was getting reviews that weren't accurate reflections of my (really stressful and difficult) work and felt completely demoralized. He did not set me up for success, instead he threw me into a terrible, dysfunctional team situation, gave me absolutely no support, and then gave me shitty reviews for the team not performing highly. I HATED that boss. It got to the point where I dreaded going to work, and I cried at least once a week in the office restroom.
I had started looking in other departments. I was just desperate to get the fuck out, the stress was just ridiculous. The thought of staying was nausea-inducing. I stuck it out, putting in minimum effort, picking up various trainings just to get away from all of them. I only stayed to give me time to find something, anything, literally anything else.
Then, suddenly, our department was restructured and that hideous boss was voluntold to resign. And my nasty, aggressive team peer, within 2 weeks, gave notice and moved to a different company. And within 3 weeks, the project itself was moved offshore, leaving the remaining team to be disbanded and dispersed to other teams.
I got moved to a new team, and it was like night and day. My hair stopped falling out, I could sleep again, I LIKED coming into work. All former people on that horrible team are no longer with the company, I'm the last woman standing. And now I LOVE my job, I have a supportive boss who recognizes the good work that I do and great teammates, and I have relaxed, easy hours (probably work a total of 30-35 hours a week), and most importantly, I feel content. I'm so happy where I am now.
My point is, don't suffer through a horrible work situation. The saying goes, people don't quit jobs, they quit bosses, and it is completely true. Staying in that situation isn't worth damaging your mental health. Just opening up your job options, knowing you aren't stuck, is a relieving exercise. If things hadn't been restructured and the boss/bad teammates hadn't all suddenly left within a few weeks of each other, I absolutely would have found a different position, even outside of the company if need be. My health was suffering and that job was not worth it. I'm sure that your wife would support leaving and/or moving if you are that miserable, my DH was so desperate to help me that he would have willingly moved to Peru to try his hand at basket weaving if that's what it took.
Try to get perks from your company to make yourself a more attractive prospect (training? conferences?) in the meantime. I managed to snag a few trainings here and there while I was miserable, which boosted my prospects. I ended up not needing to find another job, but those trainings were super helpful regardless in my new roles and I am glad I was able to get some value out of that miserable 8 months.