What are the potential risks and ethical concerns of using Artificial Intelligence for drafting legal petitions, as highlighted by the Supreme Court?

The Supreme Court flagged risks of AI in legal drafting. I want to analyze the possible consequences for legal accuracy, fairness, and accountability.