Failures are finger posts on the road to achievement. (C. S. Lewis, 20th century British fantasy author)
Even in those fantasies that end with “And they lived happily ever after” life is typically beset with all kinds of difficulties before the happy ending. It’s after the resolution of the problems that life becomes happier. The same is true in reality. Real life has its issues and failures, but they can be steppingstones to success and joy.
Though the righteous fall seven times, they rise again (Proverbs 24:16).