The examples you cite are not really examples of teaching but examples of practice. As Catholics, we believe the Church teaches without error on matters of faith and morals. This doesn’t mean that we believe the individual members of the Church never make mistakes in their actions.
Isn’t what the Pope says the teachings of the Church. After all, the Church regards a Pope as infallible.
Pope Innocent VIII issued the papal bull Summis desiderantes which gave full papal approval for the Inquisition to move against witches and permission to do whatever necessary to get rid of them. He also supported the Spanish Inquisition.
When all Christians believed around 400 that the world was flat because of scripture, how can you say this was not the Church’s teaching. Did the Church teach it was a sphere, and yet all Christians disagree?
In 1600, priest Giordano Bruno was burned at the stake for believing in science, due to the Roman Inquisition, which the pope presided over.
When Pope Leo X established the practice of selling of indulgences, how could this not be considered church teaching since the pope established it!
Galileo had the Church’s full support in his theories
Galileo went to Rome in 1616 to try to persuade the Church authorities
not to ban his ideas. Cardinal Bellarmine ordered him to stop defending his ideas.
In 1633, the Inquisition determined the idea that the Sun is stationary was condemned as “formally heretical” and sentenced Galileo to arrest.
It wasn’t until 1758 that the general prohibition against heliocentrism was removed.
This hardly suggests that the Church fully supported his theories as you have claimed.
Additionally, the Church has changed its mind on matters. For example, in 325 marriage for priests was okay. In 385, however, Pope Siricius commanded complete celibacy and demanded divorce for bishops, priests, and deacons who were married.
…be akin to looking back on the Church of today 500 years from now and saying that the Church taught that pizza and beer was valid eucharistic matter.
If the Pope himself said that pizza and beer was valid Eucharistic matter, then I think most Catholics would agree that that is the teaching of the Church.