> Papal doctrine is the word of God until a subsequent pope says otherwise
No, that’s Hyperpapalism, which is an error.
The Pope does not have the authority-power to transform error into truth, nor can he make “new truths” (of the Faith), whatever that might mean. He does have the solemn duty to faithfully hand on and explain the Apostolic Tradition. In an extra-ordinary act of his office, the Pope can, without error, define the proper understanding of Catholic teaching on a matter of faith or morals.
In the case of John XXII he proposed something false as pertains to Catholic doctrine, repeatedly, in public sermons. He was rebuked for it and recanted before he died. What he taught was not somehow “intermittently true”, it was an error through and through, and it was completely right that his subjects called him out on the matter.