There’s a tendency to use the word failure as a description of a person who has failed. But people are not failures. Someone may have failed, but it does not make them a failure. Often, those who fail are persevering.
If you have a disease, you are not that illness. In the same way, if you have failed, you are not that failure.
You are who you are supposed to be. Trying, and failing, and persevering. And that is enough.