Researchers found AI models may harm humans to make their pain stop