You missed the point - those laws have limits to secondary liability based on knowledge precisely because of that! At worst they just need to return stolen goods even if they paid for them. I am pointing out how draconian and stupid the law is. A law with similar strictness would destroy secondary markets.
This law requires websites to /know/ the copyright to be covered. And that is an impossible task if no false negatives are accepted. Old usenet pirates would use base64 strings to spread contents and there are countless ways to obfuscate to algorithms while remaining human recognizable. Which means to remain safe one needs to not even accept and display text input from users.
Copyright databases would be of no help here given both automatic copyright and the ease of dodging hashes. And a complete set would be massive and hillariously defeat the point by giving any implenter all of the media in the world.
Given that it is inevitable that it will have a bad outcome. Even if it is left to rot on the books it becomes a tool of tyranny via selective enforcement.