I’m all for learning from our failures, but heh, I don’t believe God needs failure to teach us lessons.
“But the Helper, the Holy Spirit [not failure], whom the Father will send in My name, He will teach you all things, and bring to your remembrance all things that I said to you.”
~ John 14:26 NKJV
A most significant relationship we need to develop is one with the Holy Spirit. Leaning on His leading and guidance in all areas of life helps us avoid pitfalls we would otherwise fall into. He’s in us to not only guide us in “spiritual matters”, but in ALL things.
Let Him in. Talk to Him. He’s ready.