As you can see, this happens with any MeshPart, cleanly created or not, and occurs right as you close the dialog.
Expected behavior
The prompt should just close, but honestly, it should be a bit more helpful and offer to replace your mistaken Animator for an AnimationController, which is the actual object most are looking for when adding an Animator to a non-humanoid.