No, the Catholic Church can not teach error in matters of faith and morals. The most important thing to keep in mind here is that an ecumenical council of the Holy Catholic Church can not teach error in matters of faith and morals.... if promulgated by a true pope. A true pope is what puts the official stamp on it.
Who decides what a “true” pope is?