Success and failure are simply two words that define feedback of past actions.
What you'll continue to do, decide to stop or to modify will define future feedback.
In the now, it is the meaning you give the feedback that determines which emotions are associated to it.
There is no failure, only feedback, try to remember. And be kind to yourself. It makes it much easier.
Have a good day,