Maybe you haven't chosen the right job for your bipolar??
I was feeling very dejected and ashamed when my last job (ALSO) tanked. But I took a much needed break and re-strategized, because I knew that after all this time after all these jobs, I had to be missing something.
Turns out I need a less demanding environment in order to be successful at what I do, sans a mental breakdown.
I'm now still doing administrative type work, but on a flexi schedule. I even freelance to make extra cash, because I just cannot thrive within the whole 9-5 rat raced pace anymore no matter how it used to give me a rush before.
Don't give up, don't lose heart, you may just need the right combo of treatment job to make work, feasable, maybe even enjoyable for you.