I suppose for Catholics it's always literal except when it ain't. Just like the pope is the vicar of Christ except when he ain't. It's actually humorous and sad at the same time.
Do you hold to the Biblical prohibition against eating shellfish?
Do you hold to the Ten Commandments?
Probably "no" and "yes," because the former is an example of the provisional, ceremonial Levitical laws, while the latter is an example of the eternal, moral Mosaic law.
Similarly, there are different kinds of law in Christ's Church, "the pillar and foundation of truth."
To know what they are, we must "listen to the church," because Christ gave His Church the power of "binding and loosing." (Matthew 16:19, 18:18)
Some law is dogmatic, infallible Teaching, and some law, like parts of canon law, governs the operation of the Church, and is comparable to the civil Levitical law. Similarly, the Church is not infallible in the realm of the natural sciences, but only when invoking Her Authority regarding matters of faith and morals.