Have you considered a second job? It will drain you of your energy and happiness, but it’ll be worse if you become homeless.
See if you’re able to secure a second job that isn’t labor intensive like online customer service or maybe a late night security guard job at an empty office. Usually you get a lot of down time, so you could use that to perhaps study for a better, more permanent job.
Try to fit in enough hours to sleep, shower, eat, and maybe light exercise. I have found that the minimum hours of sleep I need to still function is 5 - this is dangerous and will kill you in the long run, but if you think it’ll keep you off the streets if you just brave it through for a few months, then it may be worth it.
If you’re spending the minimum, then a second, easier job maybe help you get out of the hole, or at least for the short term.
Japan is so great that people drink themselves to death after overworking useless office jobs and have politicians who encourage their citizens to have sex to make the country great again.