I'm a guy with very little experience, CS degree, currently living in Texas, and was laid off by another company before this.
I found a job after a long job search. I cancelled my other job offer, spent all my savings ($2k on rent, flight, AirBnB, etc), and moved across the country to work here in a sort of suburban city with no way to get around. I was planning on saving up money and building up my life here.
After 2 months, I was laid off. I have no car, no insurance, practically no money, etc. It costs $50 round trip just to Uber into downtown, so I end up holed in my apartment. Not to mention the cost to go to meetups and on-site interviews (yeah, no one has once offered to pay). I've been searching for about 4 months. I've made it to several on-sites, but never got an offer and don't know exactly what I'm doing wrong. Like one company would say I passed, then ghost me after the on-site, or they said I did good then decided to go with an internal candidate.
I signed a year long lease. It will cost $7k to break. If I somehow get a job offer from another state, what kind of company will even help with that? Like I said, I have trouble even getting companies to pay for interviews.
Regarding my health. I'm totally depressed and have developed heart problems. It's impossible to function doing anything. I also tried my best when I was working, and would even try to code all night and on weekends. Now I have to see all my energy go to waste and have to restart from step 1 again.
What would you do if you were in my shoes?
Also, I would take any job, even a non technical one, just to stay busy and to try to keep the bills paid and to stay in a regular rhythm.
For your medical / mental issues you should most likely simply consult a professional, no internet advise will help you there in ways that move the needle and/or are positive.
best of luck!
edit: And if you have family don't hesitate to call on them. I did so in hard up times and my kids do it with me and that's how it should be, it can take a while to find your bearings and that is one reason why family members should support each other. Of course if you don't have much family or they are in no position to help then you can safely ignore this.