If they literally copy-paste without checking and it turns out the AI was wrong and you suffer harm from that you can sue the lawyer for malpractice.