You have identified a real problem for the Democrats if they switch candidates at their convention.
They will find a federal judge who will over rule the AG and mandate Biden be put on the ballot.