There's a quote I always go back to whenever I have a setback in work or my career in general. It's a quote from wrestling manager and former promoter Paul Heyman said in the Rise and Fall of ECW documentary.
"I'll risk failure. Sometimes, half the fun is failing. Learning from your mistakes, waking up the next morning, and saying 'Okay. Watch out. Here I come again. A little bit smarter, licking my wounds, and really not looking forward to getting my ass kicked the way I just did yesterday.' So now, I'm just a little more dangerous."