I used to suffer depression, and the biggest advice I got was to diversify my sources of self-esteem. It's fragile to only have one source of ego, you want to have hobbies, work, friends and family, all to support you when things go badly. Because we all have off days, it becomes a spiral when we don't have things to help us through.
e.g https://www.cnn.com/2019/07/08/us/marathoner-frank-meza-suic...