There will always be a quant element in finance. I'd guess there will be fewer quants in five years than there were in (say) 2007, but there was definitely an over-supply then.
Having said that, most quant jobs don't require you to have had specific training in finance or financial mathematics. For the best firms, its much more about your mathematical and programming abilities. So you definitely don't need to specialize now in finance to become a quant. You could make a case that focusing on AI would be a bigger draw with quant firms.
The other advantage of not doing finance now is that it gives you five years to think about whether you want to be in a career where when you get down to it, you rent out your brain to rich people so that they can get richer. I do work as a quant and find it interesting and competitive etc, but ultimately its a money thaang.