Don't take the right safety precautions and burn down a customers house - liability insurance
Click on a link in a phishing email and open up your network to a ransomware attack - cyber insurance
Forget to lock your door and get burgled - property insurance
Write buggy software which leads to a hospital having to suspend operations - PI (or E&O) insurance
Fail to adequately adhere to regulatory obligations and get sued - D&O insurance
Obviously there will be various conditions etc which apply but I've been in Insurance a long time and cover for carelessness and stupidity is one of the things which keeps the industry going. I've dealt directly with (paid) claims for all of the above situations.
It doesn't absolve responsibility though, it just protects against the financial loss. I suspect if you leave a child alone with an AI and the house burns down that's going to be the least of your problems.