It's interesting someone would bring this up. if I am remembering correctly (Though I cannot for the life of me remember which book so apply salt generously) there was precedent for a king simply stepping aside for their heir to take over before they died themselves.
Viserys could have just done that earlier, let his daughter rule as queen for like 10 years that way when he dies, shes already established.