Hang in there man. I have been flat on my AZZ and I ended up better than ever afterwards.
It was about 20 years ago now and I filed BR, lost my house, vehicles, a business and a wife. I thought I would be better off dead for a minute and then quickly said eff that and I rebuilt myself.
I worked my tail off for the next 10 years, meet and married the most perfect woman ever, watched my career soar and now I have just coasted the last 10 years with great money almost coming in on it's own, my loving wife and more material things than we need but a fat wad in savings and invested.
No matter how bad it looks or seems, you will get out of it.