You can't stop sleeping because of the fear of a bad dream.If someday a bad dream occurs, then the next morning it feels very strange, dry, and sad. Even without wanting, we remember that nightmare again and again, even when we know that it was a dream but still it is capable of making us sad in real life because we are allowing it to do so.
It is very good that God has not given us control over the power to sleep and we sleep even if we do not want to, otherwise, man is so adept at torturing himself that he stops sleeping to keep himself away from nightmares.
Just as we cannot stop the process of sleeping because of bad dreams, we should not stop our efforts towards our goals due to bad experiences or failure. Continuity is an important aspect of life, just as we are making a continuous life every day, in the same way, making a continuous effort every day also an important aspect.