Before you resign, line up another job.
And have some FU money stashed away to buy you some time.
I think you know what FU stands for.
Thank you for your advice, I’ll think about it before I make the decision.