One of the greatest heart postures you can have as a believer is one of gratitude in-spite of failure.
I was praying a thanksgiving prayer last week and was recounting all God’s done so far this year. He said “even the failures and losses, because its all working for your good.”