A bit of misunderstanding between sin and infallibility. Infallibility only applies to matters of faith. The question is not, can the Popes sin but did they pronounce some error in defining a matter of faith.
They sure as HELL 'erred' in matters of PRACTICE!