I spent every night until four in the morning on my dissertation until I came to the point when I could not write another word not even the next letter. I went to bed. Eight o'clock the next morning I was up writing again.
We need to accept that we won't always make the right decisions that we'll screw up royally sometimes - understanding that failure is not the opposite of success it's part of success.