I cannot find a bull from John XXII condemning papal infallibility as heresy. Can you provide a citation?
Think it was bull of 1324 entitled QUIA QUORUNDAM
http://www.franciscan-archive.org/bullarium/qquor-e.html