ChatGPT maker is struggling to transform itself into a profit-driven company while addressing concerns about AI security.