You have time, the most important and valuable resource any person can have. At your age my politics were entirely incoherent and it would take me about 20 years to figure things out. While I (hope to) have a lot more time left on earth, now that I’m in the 40s time does feel more dear to me. I have this feeling that I don’t have enough time. How much organizing will I actually be able to do? How much theory reading and understanding (which I genuinely enjoy) will I get to do?
I don’t have a specific answer for how to stay optimistic. But I can point out that you have your whole life ahead of you to be able to figure it out, and that’s something I think many here would love to have. I have found in my life that developing gratitude helps clear a lot of things up, fwiw.