Self-compassion - being supportive and kind to yourself, especially in the face of stress and failure - is associated with more motivation and better self-control.
"The Willpower Instinct: How Self-Control Works, Why It Matters, and What You Can Do to Get More of It". Book by Kelly McGonigal, 2012.