It would take Samsung (or what's left of Nokia) a whole 10 seconds to produce a Google-free phone based on the Android Open Source Project (AOSP) if there was a market for it. Which it might soon be.
So AOSP would survive fine after stopping taking in new code from Google?
They "just" have to make a phone that can be supported by GrapheneOS.