In addition to the good responses you've gotten about not overreacting to hype cycles I'll add that you should also try to spend less time worrying about the unknown. I understand the appeal of a straightforward career path of college major -> internship -> junior role -> mid-level -> senior all in the same field. That works out great for many people, but you should also be aware that there are a lot, and I mean a lot of people whose path ended up looking nothing like that and are leading happy comfortable lives.
Even if the worst case happens and the field gets wrecked by AI it won't be the end of the world. There will always be work for smart and reliable people. You might end up having to learn some new skills you weren't expecting to, but hey that's life. I have quite a bit of sympathy for someone with 30-40 years of experience who sees their career swiped away; retooling and getting hired in a new area can be quite hard at that stage. But for someone in their early 20s? There's absolutely nothing that can prevent you from adapting to whatever the new economy looks like in a few years.
Even if the worst case happens and the field gets wrecked by AI it won't be the end of the world. There will always be work for smart and reliable people. You might end up having to learn some new skills you weren't expecting to, but hey that's life. I have quite a bit of sympathy for someone with 30-40 years of experience who sees their career swiped away; retooling and getting hired in a new area can be quite hard at that stage. But for someone in their early 20s? There's absolutely nothing that can prevent you from adapting to whatever the new economy looks like in a few years.