Legal departments have accelerated automation and technology adoption during the pandemic, a process that can have a big upside but also is fraught with risks and potential missteps.