Emergence of psychopathological computations in large language models