The trick when dealing with failure is arranging your financial life in a way that a bad investment here and a missed financial goal there wont wipe you out so you can keep playing until the odds fall in your favor. But more important is that as much as we recognize the role of luck in success, the role of risk means we should forgive ourselves and leave room for understanding when judging failures.
The Psychology of Money by Morgan Housel