The key to self-confidence might be to pick battles you can win. Then perhaps one day you’ll be far enough on the positive side of things to be able to deal with failure without going into depression.