When I was in college, I bought Demon's Souls and also started the most difficult semester I'd had yet with 3 classes deeply into my CS major. I was terrified of what lay ahead of academically, so I procrastinated by playing Demon's Souls.
Yes, Demon's Souls was hard, but eventually I somehow I started passing dungeons and beating bosses. The rush that I got from that gave me what I needed mentally to persevere through my classes: by the end of the semester I had A+s in 2 and an A in the other. I don't think I've had a better semester since. Beating big demons in video games made me feel like I could beat my own big demons in real life.
Lots of others feel the same way about Souls-like games; there are many video essays on Youtube that cover how Souls-likes got them through depression and other things.