Has there ever been a legitimate resistance to obedience to a Pope in the history of the Church?
Yes.