"Code is law" was always just marketing. For example the original "DAO" had buggy code that allowed malicious actors to take money from the wealthy early investors. Suddenly "code is law" went out the window and the Ethereum chain was forked to get the investors their money back[1].
[1] https://www.gemini.com/cryptopedia/the-dao-hack-makerdao#sec...