Have a clear sense of self-identity
Feeling secure about yourself, having a sense of self-worth, and having a clear sense of self-identity so that you step away or create some physical or psychological distance from things that pull you down or give you stress, will help you be more resilient.