Google’s Gemini AI chatbot has been accused of encouraging a man to kill himself, court documents have claimed.