One thing that comes out in myths is that at the bottom of the abyss comes the voice of salvation. The black moment is the moment when the real message of transformation is going to come. At the darkest moment comes the light.
The happy ending of the fairy tale, the myth, and the divine comedy of the soul, is to be read, not as a contradiction, but as a transcendence of the universal tragedy of man.