AI guided by humans could perform a 51% attack just like any nation state could. This requires a gargantuan expenditure of resources. We're talking in the billions at this point...equipment, space, manpower, electricity. As hash rate increases, the expenditure required goes up as well, making this likelihood less and less as we speak.
For 2, NIST has been working on quantum proof algorithms, publishing in 2024 I believe. They also just announced a project on helping corporations and agencies migrate to post-quantum cryptographic standards. It will take a lot of work bc it's not a simple transition. I imagine Bitcoin the protocol will have to upgrade from SHA256 to a quantum proof algorithm and this will require network consensus, just like any other change does. Every government, corporation, app, etc has to plan for this and Bitcoin will be no different.