edit: quantum algorithms and error-correction algorithms are math problems. breakthroughs in quantum algorithms already reduced the qubits needed to break RSA quite drastically already. maybe AI could even aid in qubit design and hardware architecture.
If we lost that, we’d need to do a combination of physical key exchanges (for most critical / sensitive cases) and Kerberos style key exchange servers.
Public-key cryptography is not strictly necessary, key exchange can be done using pre-shared secret keys.
Within an organization, public-key algorithms offer only few improvements over secret-key algorithms, e.g. the ability to revoke certificates.
Where public-key algorithms have great advantages is for asymmetric communication between unknown customers and an authenticated server, e.g. for online purchases and online banking.
If the existing public-key algorithms became broken tomorrow, that would have negligible effect for spy agencies or competent terrorists, but it would disrupt the Internet commerce.
How’s TOTP work? Generally if there’s a seed involved I’d be worried that some bits could be reused. But, as I said before, I don’t know anything about crypto.