It can be difficult to remain steadfast in the face of adversity, but practicing self-compassion can help you stay resilient.