Your brain may be tricking you into giving up early, and understanding the psychology of quitting could change everything.