You are definitely not alone. A few years back, I was in a similar position. I was stuck in a job I hated, couldn't pay my bills, felt isolated and overwhelmed. Even just getting everyday chores done seemed like a monumental task, and thinking about anything I had to do beyond dragging myself to work and back was likely to send me into a spiral of despair, bordering on a panic attack.
What helped me immensely was talking to my GP and getting on anti-depressants/anti-anxiety meds. Of course, medication is not the answer for everyone, and sometimes it takes a few false starts to find the right one, but if you are in a position to do so, I highly recommend talking to your doctor. They won't think less of you, and they may be able to help. You don't have to live with depression and anxiety.
In the mean time, hang in there. You are an intelligent, level-headed man, and you have the strength to make it through. As they say, "This, too, shall pass." Good luck.