Your job is where you spend the most of your time. Do not settle for something that you have to endure. Your mental health must be a priority.
We have a finite number of days in this life. Ten years from now, will you think back and say, "I can't believe I just kept working there!" Or will you say, "I'm so proud of myself for leaving when I saw the writing on the wall."
When it's time, it's time. The only person who will suffer in the end is you.