We need such laws today.
I was told by NameCheap's LLM customer service bot (that claimed it was a person and not a bot) to post my email private key in my DNS records. That led to a ton of spam!
The invention of LLM AIs would cause much less trouble if the operators were liable for all the damage they did.