The point of going to school is to learn, not to get an A.
The point of living your life is to grow, not to be happy.
In both cases, the latter is usually an indicator of the former, but there are ways to cheat to get the latter without the former. That's where people go wrong.
https://yourmeaninginlife.com/blog/happiness-is-not-the-meaning-of-life
You decide what meaning the events in your life have to you.
https://yourmeaninginlife.com/blog/you-can-find-meaning-in-whatever-happens-to-you
Asking where you see yourself in five years is a good exercise to determine both where you're going and what you want to be doing today to reach your desired future state.
https://yourmeaninginlife.com/blog/where-do-you-see-yourself-in-five-years