Your brain wants to deal with failure by giving up. Yet therapy, especially cognitive behavioral therapy, can be helpful for exploring the origins of perceived helplessness and addressing related behaviors. Working with a therapist may help you unlearn and "decondition" yourself. A clinician may help you to change your thinking style from pessimism to optimism, and you can do this perhaps by reframing situations and outcomes in a more positive light.