On second thought, do not quit. Make them fire you so you get unemployment insurance.
Focus all your effort into getting your replacement job.
My coworker expected to be fired. She told H.R. she had been diagnosed as bipolar. Then she was unfireable.
Absolutely correct.