Practicing self-compassion and positive self-talk can help in building resilience by fostering a kind and supportive inner dialogue, which can boost self-confidence and motivation during challenging times.