Did you ever see it like that?
Failure is a misconception of unwanted results.
Unwanted results follow from doing things wrong or doing the wrong things. Unwanted results help you to learn about which things you should do and how to do them right.
Think, learn the lesson, make sure to record it in a system you trust and use. Then start again.
Get in the flow