Remind thyself, in the darkest moments, that every failure is only a step toward success, every detection of what is false directs you toward what is true, every trial exhausts some tempting form of error, and every adversity will only hide, for a time, your path to peace and fulfillment.
Never give up.
It's like breathing - once you quit, your flame dies letting total darkness extinguish every last gasp of hope. You can't do that. You must continue taking in even the shallowest of breaths, continue putting forth even the smallest of efforts to sustain your dreams. Don't ever, ever, ever give up.