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 won't wipe you out so you can keep playing until the odds fall in your favor.
They are driven by the same thing: You are one person in a game with seven billion other people and infinite moving parts. The accidental impact of actions outside of your control can be more consequential than the ones you consciously take.