“I am a failure” (noun form) does not describe what you did, but what you think the mistake did to you. This does not contribute to learning, but tends to “fixate” the mistake and make it permanent. This has been proved over and over in clinical psychologic experiments.