I don't remember the details but Steve Gibson of the Security Now Podcast talked about this a long time ago.
Apparently there are researchers that are working on cryptographic algorithms that are difficult for quantum computers.
Maybe of such a crisis occurs we'll have a replacement ready to drop in.
There will be chaos but it's up to each individual to make themselves resilient.