I am not familiar with gluten ataxia. You should ask the professional(s) who made the diagnosis if cognitive difficulties might be associated with this disorder.
Your friend is lucky to have people who care about him. How did he get this far in life? How have you been able to accept his level of function or lack of function?