1) The heresy of religious liberty is condemned by Pope Pius IX in his encyclical Quanta Cura. He also references Pope Gregory XVI calling religious liberty, insanity. But please keep in mind that True councils of the Catholic Church can’t contain any error whatsoever, so if you want to argue that the condemnation of RL is not necessarily dogmatic, it still would be contradicting past teaching of the Church.
2) Vatican II’s Dignitatis Humae.
You failed to demonstrate what I asked of you.
Where in Quanta Cura is it stated that religious liberty is heretical?
Pope Gregory XVI referring to religious liberty as insanity is also not tantamount to the same thing as heresy.
Heresy, strictly, defined is the denial of a divinely revealed truth in revelation mediated by the magisterium or taught in the ordinary and universal faith.
Religious liberty is not condemned in the early church and there is no revelation in scripture or tradition directly pertaining to it. In fact, the patriotic evidence is to the contrary!
Tertullian wrote:
“It is only just and a privilege inherent in human nature that every person should be able to worship according to his own convictions; the religious practice of one person neither harms nor helps another.”
Let one man worship God, another Jupiter; let one lift suppliant hands to the heavens, another to the altar of Fides; let one — if you choose to take this view of it — count in prayer the clouds, and another the ceiling panels; let one consecrate his own life to his God, and another that of a goat. For see that you do not give a further ground for the charge of irreligion, by taking away religious liberty, and forbidding free choice of deity, so that I may no longer worship according to my inclination, but am compelled to worship against it. Not even a human being would care to have unwilling homage rendered him.”
The other patristic figures do not even mention it.
Regarding what you mentioned of ecuмenical councils not containing error whatsoever; distinguished. For dogmas, granted. For anything else, denied. Ecuмenical councils regularly reversed or contradicted ordinary Papal teachings and even other ecuмenical doctrines not definitively settled. Even Popes regularly contradicted each other and their own teachings in ordinary Papal magisterium. See Bellarmine’s “On Councils” for further details on the matter on councils and the various editions of Denzinger since publication for examples of non-definitive papal error.
Lastly, you failed to demonstrate how Dignitatis Humanae contradicts Quanta Cura even if we grant that the former is infallible which it is not and cannot be because it is not rooted in revelation or tradition prior to the pre-modern era.