Who exactly is the source you cite for the claim atheism is breaking the commandment and therefore sinful? He does not seem to be a Catholic, let alone someone with authority to define the church's teachings. Can you link to a similar statement in the Catechism, a church Council, or at least a papal encyclical?
"One protestant preacher said" is not proof of what the Catholic Church believes.
That's a far stretch. How is "keep the sabbath holy" a "general principle" in any way? How is "thou shalt have no other gods before me"?
You can tell that it is from context as the laws just after that mandates a LOT of killing. For being "a witch" for example (which I assume is another mistranslation).
Yes the ten commandments are very much what defines sins.
> "One protestant preacher said" is not proof of what the Catholic Church believes.
Yes. From the Catholic Catechism: https://www.vatican.va/content/catechism/en/part_three/secti...
> 2125 Since it rejects or denies the existence of God, atheism is a sin against the virtue of religion.
> There is manifestly contained in this commandment AN IMPLICIT DENIAL OF ALL ATHEISM. The command, "Thou shalt have none other gods before Me," rests on the assumption that there is one true and living God. The law therefore forbids atheism as being a denial of God. (https://biblehub.com/sermons/auth/barrett/the_first_commandm...)