I went in to graduate school by default, which wasn't necessarily a mistake but I didn't need that degree and I didn't particularly enjoy the work. I made and strengthened some friendships there, though- the most valuable result of that time.
School is a place to suffer together and make friends.
I escaped from various traumas by playing videogames, and only see that clearly now in my 40s after talk therapy, The Blindboy Podcast (talks about mental health as well as art, music, stories), giving up games for long enough to own the decision to play again (mainly as a way to spend time with friends). I say all that to encourage you to examine your actions. If I had been more self-aware earlier, my life would be different. I'm intentionally avoiding judgement here- I'm not saying it would be better. I appreciate that I'm alive and practicing awareness.
A book that guides me these days is Why We Need to be Wild, by Jessica Karew Craft. She emphasizes being part of a close group of friends and family. If you don't yet have that kind of mutual support, consider prioritizing it.
Lastly, you don't have to do anything but stay alive awhile and reproduce and/or help others learn and grow (not everyone needs to make babies, but I'd say it's reasonable to expect ~everyone to be part of raising children, even if it's practicing love and kindness). The way we have changed the landscape to make our lives so dependent on layers and layers of technology is disheartening to me and might be at the root of aimless feelings. If we restore the land we'll restore ourselves.