That logically sounds pretty unsound, any such termination clause would mean she gets very little or nothing.
The cost of this kind of exit is going to be always higher than any voluntary termination . Lawyers are not dumb this loophole would have pretty obvious early on, Disney has had decades of experience handling child stars she is hardly the first star or the first one to have problems with her image for Disney.
It just seems like a PR reason, it could perhaps explain until contract termination by Disney not the next ten years after the image she has built.