I could list dozens of these and, let's be honest, you can too. A slew of personal anecdotes exist about someone "failing" cataclysmically, only to later snatch a much more prized victory from the jaws of defeat.
What they "failed at" and left behind later became something they wouldn't even want for themselves any more. What awaited on the other side of that failure was something so much shinier, a much bigger success than they could ever have imagined for themselves.
The lesson in these tales is that we tend to take score way too early. If you are in the grip of what seems like an unmitigated failure right now, perhaps - just perhaps - it's a foundation leading you to something way superior. You just can't see it yet.
Perhaps it's not failure at all. Perhaps there was something you needed to learn; something you needed to let go of - albeit in a brutal fashion - in order to make way for something that will serve you better in the future.
Consider the possibility that failure is not failure at all. Maybe it's just incomplete success in disguise. Doesn't that feel better? Whether it's in the career area, or the money area, or the relationship space, or the owning your own home space or the health and fitness place. Whatever it may be for you, maybe you are not experiencing failure at all. You are just in the slightly messy transition phase of incomplete success. That's all it is. Incomplete success.
So hold fast. Don't call it too soon. The fat lady hasn't even started warming up.