BTW, I think you misunderstand papal infallibility. It does not apply to Peter’s statement that Jesus rebukes him for.
If Jesus could not trust Peter with the keys, as you seem to be implying, then He made a mistake in doing so.
The “keys” refer to the gospel, which was indeed given to Peter, as well as to all of Jesus’ followers.
Note the phrase that unpacks the “keys of the kingdom” phrase: “... and whatever you bind on earth shall be bound in heaven, and whatever you loose on earth shall be loosed in heaven.”
That clarifying phrase is also found in Matthew 18:18. When Jesus says this to ALL his disciples.
Also, consider Galatians 2, where Paul rebukes Peter (supposedly the first Pope) for his doctrinal errors. Whose doctrine is correct — Paul, or Peter? If you say “Paul,” then you are saying that the supposed first Pope’s doctrine was incorrect, thereby proving that “Popes” are indeed fallible in the area of doctrine.
This is challenging information, D-fendr. I urge you to study the Scriptures yourself.