I was in a similar situation. I adopted a bunker mentality. Every month/quarter I survived was a victory.
It didn't feel great at the time but now, looking back, I am grateful I toughed it out. Towards the end I set a 12 month count-down which helped reduce the stress.