You’re probably better off not even thinking in terms like failure and success. Rather, think like a scientist. Life is an experiment and there are only results.
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.