“Wisconsin does not allow a candidate’s name to be withdrawn from the ballot except due to death. Nevada allows changes to its ballot up until 5:00pm on the fourth Friday of June in the election year — it also allows special consideration for if nominees die or are determined to be mentally unable to proceed. “
https://www.foxnews.com/politics/heritage-working-election-legal-challenges-case-biden-pulled-from-dnc-nomination
Those laws can be hastily changed if it’s a blue state. Executive order etc. Emergency Declaration and the Secretary of State can change election laws.