You're taking a highly dramatic read on your situation, I'd say overly so. Even though you may have been "kicked out," you still got paid, and you apparently had enough skills to get to that point.
Start applying for a bunch of jobs and see what positions feel most comfortable. Also consider psychotherapy to deal with what looks like ruminations and generally poor self-esteem.
> Also consider psychotherapy to deal with what looks like ruminations and generally poor self-esteem.
While I might not have put it that way, I +1 this. OP doesn't sound like a failure to me. Mental exhaustion from trying to keep the lights on at a start-up can definitely take its toll. I know I have similar thoughts when I've been burning the candle at both ends for too long.
Start applying for a bunch of jobs and see what positions feel most comfortable. Also consider psychotherapy to deal with what looks like ruminations and generally poor self-esteem.