It’s not really a question of success or failure.
It’s not a matter of ‘all or nothing’ thinking.
Too much of this type of thinking is unhealthy and, paradoxically, will make it harder for you to achieve your goals, and more likely to self-sabotage.