For example, Chrome is already enabling post-quantum key exchange
https://security.googleblog.com/2024/09/a-new-path-for-kyber...
If the problem is found in time, the network could be forked back to before the problem was exploited?
A broad attack on EC DLOG or on the secpk curve would hopefully be preceded by academic community incrementally making it weaker with easier attacks which would give time to fork to something with better margin of safety in advance.
If it was truly a full on zero day and someone disclosed it to core devs or miners it would probably be bumpy getting the network aligned to fork but people would do it. But idk the details of how bitcoin developers and miners coordinate.
In more likely event nation state is the zero day holder I have little idea how they'd use it. Network could always be forked after enough people believed an attack was going on but it would be a confidence shaking disaster. Forking back in time before most people believe the attack started is always possible but has its own serious downsides.