I went the a very similar experience in my early twenties, read up on Zen Buddhism heavily, practice meditation and discovered/became a proponent of the belief that all of this we call life is illusory, “hevel” or smoke and that grasping(desiring) is useless. But even knowing this, like yourself, I still decide to live life striving for goals I want to achieve while remembering it’s just a game.