State facility for the mentally ill risks losing license over turmoil