“Failure is the opportunity to begin again more intelligently.”
You have only failed if you failed to learn from the failure.
Even Nature does not get it all right on the initial attempt(s).
So mere humans ought to adjust their attitude, and open to learning.
The learning mode in the midst of your challenges engages intelligence.
Intelligence brings clarity dispelling the energies of frustration and negativity.