The world will have bigger fish to fry if "encryption" gets cracked around 2027-2028. I doubt it will, but anyway assuming it does then they will switch to quantum resistant encryption algorithms instead.
Also, you can’t really switch Bitcoin to quantum-proof algo. It’s pretty much inpossible.