Of what consequence are shattered dreams?
If they never left your head and your heart, then they were never acted upon, and thus never took tangible form.
How do we feel pain from ideas that were never forged?
How can we be injured by failed goals which were never acted upon?
How can we feel depression when the empire we built in our heads crumbles?
Let your soul not be troubled by the conjurings of your imagination. Instead, put them into motion. Instead, work. Instead, live.
By your actions, judge your failures. Then, let yourself take take joy, when your works in the real world, lead to success.