Popes don’t resign. They die.
Pope Celestine V
There have been a handful of resignations and retirements in the last 2000 years, most famously Pope Celestine V , who retired to become a hermit, and is a canonized saint. Oh, and Pope Gregory XII (14061415), who retired to end the Western Schism.
No problem with the infallibility thing, which is not a "personal characteristic" of a Pope. It is a characteristic of the Church. It exercised by the Pope himself, only when he is, in very rare and formally limited circumstances, defining a doctrine on faith or morals in the name of the Church.