Always made sure I have had something to go into when I have quit roles, enough pressure hating the current job without leaving to have nothing lined up.
Left my last job in an aerospace company as the management were absolute wastemen, shop foreman on your case all the time if you happened to open your mouth or if your break over ran by a couple of mins. Never been so unhappy in my life. Decided to do a few courses in my own time and hunt for jobs. Kept my head down even though I despised it and after 6 months found something else in a different field after working in aviation for the past 13 years. Pay is better, get better benefits, get to manage my own time and workload. Have since been offered jobs on quite a bit more money but the work life balance would be crap and money isn’t my motivator, although it is always nice to earn more I guess.
Best advice I could give is to sort your cv out, be patient and not make any rash decisions. Sometimes you just have to wait it out but there is some good opportunities out there.