I'm sorry to hear about your situation, it must be really difficult having to balance all of these things.
When finding a place to stay try using a variety of websites for your search and you'll be able to find more results, you could also contact the accommodation services at uni to help you find something - it's worth sending them an email. You could also consider renting a flat or property and split costs with your friend.
In regards to your studies, it isn't worth giving up especially after making it this far, you could take a year out for 'work experience' and use that as an opportunity to save up and work things out before returning to study next year. Do contact your personal academic tutor for advice.
For work you could try checking out unidays as it gives a lot of options for side hustles that'll help with costs for things and you could also consider online tutoring to help you save up alongside your other jobs. Have you tried applying for a maintenance loan? That may also help, it's also worth budgeting and trying to find ways to cut costs.
I hope this helps, good luck with everything!