Yeah, to be honest, it sounds like that to me as well... I keep hoping you'll cope and am crossing my fingers for you things will improve, but at the same time it's also a bit like watching a (potential) slow-motion breakdown...something like an extended breakdown
I'm wondering whether you have access to inpatient care where you are/ whether your health insurance covers it?
Would it be an option to rent a small storage space, like a small garage or something, put your stuff in storage, cancel your lease on your flat and get inpatient care until you're better and then with the help of their social workers etc find a more affordable place? I don't know what the system is like in the country you live in, but in many/ most western countries, if someone's basically "homeless" (ie. without an apartment or room where they can live) then a place like a hospital is sort of "responsible" for helping that person find at least some kind of accomodation, even if it's temporary like in a shelter, while seeking more long-term housing.
If I were just looking at your health, that's probably what I'd suggest. But looking at the overall situation (health insurance, your country's health care system, finances, housing) I don't know how feasible it is to prioritise your health that way...?