You need a PLAN. You probably need a Mentor or a group of friends to talk this out with.
Questions you need to answer before quitting:
1) is there anything they can do to keep you - you need to be prepared to answer this, not emotionally but with logic and your sanity in mind
2) is your resume ready? If not when will it be ready.
3) how do you answer the question: Why did you leave? The simple answer of 'They were toxic' sounds too much like BS. It could be interpreted as you are toxic and not willing to see your own problems.
4) are you able to spend 6 months to a year unemployed? Can you cover all expenses. Including medical.
5) if you are out of work long term, how do you explain what you have been doing? Best answers are: learning new stuff (with details, possibly a degree), volunteering. Worst answers: finding yourself, just relaxing, doom scrolling youtube.
6) if you have unemployed friends, set up a group. See question here where someone was asking how to handle long term unemployment.
7) What are your criteria for the next job. Clearly not toxic but how are you going to ensure that does not happen. Prioritize your list. Having wants is fine. Having absolutes is fine. Knowing the difference is critical. For me, not moving was an absolute until I had been out for 6 months... then I found a job :-)
I wish you the best of luck.