As an example, an illegal move may be possible to correct by leveling up the Pokémon, changing the form, adding it as a Relearn/Egg Move, by checking the TR/Moveshop flag for it, etc.
Without context of the user's intentions, there's no logic that could point out one specific option and direct the user to do it, and listing "any and all potential fixes" would be a nightmare.