Failure is your best tool to help you navigate through solving interesting problems. They are opportunities that will force you think differently. Every failure is like a springboard to bounce on and leap across obstacles.
Success on the other hand is not interesting. If you foresee something, and it happens as you predicted, it becomes instantly boring, there is nothing new you can learn from it. It is the path of least resistance.