This may sound a bit harsh, but dude you need to lower your standards. In the coding and startup world we created a cult like impossible dream to fulfill.
I have a startup that went through some very low lows. I had just quit my cushy job and had saved enough money to last for 2 years, but not my co-founders. When we ran through our funding, things became harsh. I funded everything out of my pocket.
The CTO couldn't afford his apartment anymore so I paid for his rent. Not long after, I got a family emergency and couldn't afford it anything anymore. I told him to get a part time job to help out. He squarely told me no. "Every successful startup founder lived in a van and dined on Ramen."
I stopped paying his rent. He moved into the office. I urged him to get a job because I couldn't afford it anymore. He refused. I stopped paying the office rent. He went homeless.
He lived on the generosity of strangers, though he went days without eating. He refused to get a job. As long as someone was helping him, he wouldn't work. We had to trick him to help him, a friend gave him some space to live together, then later told him that he needs to participate on paying rent. Only then he started looking for work.
There are a lot of conflicts the OP only mentioned in passing and didn't go into details. There is a lot more to this story, maybe the mental health issue nullify anything I say here. But thinking your story is like that of every unicorn tech founder can lead you to make terrible decisions.
Sometimes you have to be humble and make sacrifices to be able to move forward.