If you get into the fine details concerning the question you raised, you will find that there are different levels of assent that are owed to doctrines taught by the Church. The different levels of assent correspond to the degree of certitude that the doctrine beign taugth is true.
The highest certitude we have are doctrine that have been taught infallibly, either by a solemn act of a Pope or by the force of the ordinary and universal magisterium (i.e., what has always been believed and accepted by the Church).
For this first category of truths, one must give the unqualified assent of faith. No exception and no wavering. You have to accept them as infallibly true, which they are.
A lesser level of teaching are those doctrines that are indeed taught authoritative - meaning they come from the proper authorities in the Church - but they have not been taught infallibly, meaning they have not been defined and there has not traditionally been a unanimous agreement concerning them. It is possible that these teachings can be revised, and, because of this possibility, they are not accepted with faith, but only with a “religious submission of intellect and will”.
Now, due to the unusual situation in the Church today, we should note a third category, which, in normal times, is something Catholics don’t have to concern themselves with. This is a category in which a particular teachings appears to contradict what has been commonly held for centuries, and/or is directly opposed to what many other Popes have taught. When faced with such a contradiction, common sense tell us that it is imprudent NOT to question the new teaching. The safe course is to hold to tradition - that is, to continue believing what has been traditionally taught, and not to adhere to the contrary. God sometimes allows errors to be taught for a time, as a test of our fidelity to the truth, but the errors will eventually be corrected.
And there are examples of Popes in the past who have taught errors contrary to tradition. During these extraordinary time, some resisted the errors while others went along with them. But in the end the “new doctrine” was always shown to be false.
Here is a good article on an error taught by a Pope during the 14th century, and how the Catholics of the day responded.
remnantnewspaper.com/web/index.php/fetzen-fliegen/item/729-how-catholic-resistance-saved-the-church-and-how-it-can-do-it-again-part-i