A huge problem today, which is the source of much confusion, is the word “official” in your post. The evil one has succeeded in throwing MUCH dust in the air to obscure the truth that, as you rightly say, "The Holy Spirit will not allow error to be taught. "
The evil one delights when error is taught in one way or another, by men wearing the garments of the Church, and appearing on the surface to be “speaking officially.”
Jesus said it right:
Mt 23:2 "The scribes and the Pharisees sit on Moses’ seat;
Mt 23:3 so practice and observe whatever they tell you, but not what they do; for they preach, but do not practice.
Mt 23:4 They bind heavy burdens, hard to bear, and lay them on men’s shoulders; but they themselves will not move them with their finger.
Mt 23:5 They do all their deeds to be seen by men; for they make their phylacteries broad and their fringes long,
Mt 23:6 and they love the place of honor at feasts and the best seats in the synagogues,
Mt 23:7 and salutations in the market places, and being called rabbi by men.
When, and as long as, they are sitting in Truth “on the chair of Moses” - or the chair of Peter - then yes, that is “official”. When they are in Truth NOT speaking divine revelation but merely their own opinions, then those opinions must be judged in the Spirit by those listening, and decided for or against as opinions or suggestions. We must obey God and not men, no matter what clothes they wear.
But these days, there is much confusion concerning what is of the Faith, and what is the non-infallible “prudential” judgment of clergy of whatever rank.