Corporate legal departments are bracing for a surge of litigation and regulatory enforcement in 2024 as more companies try to take advantage of advances in artificial intelligence.