Mitigating mental health risks in AI interactions