While frenzied demand for generative AI has turbocharged profits for many tech companies, anxiety is growing over the risks that it poses to society and the environment.