Failure is not equivalent to incapability. Capable people fail. Successful people fail. Failure like success is dependant on intent and context and perspective.
There can be no learning without the possibility of failure and self-as-learner is a highly efficacious self-concept. Especially today.
People who consider themselves successful attend to their successes not their failures despite the fact that their failures outnumber their successes. People who consider themselves failures attend only to their previous failures: belief becomes self-fulfilling.
Easy to say and difficult to do: Court failure; learn; move on.