His psychosis was a mystery–until doctors learned about ChatGPT’s health advice