More than one person I knew casually claimed their shrinks were attracted to the profession by their own mental problems and this got them fascinated by the mind and it’s screwups. I believe that.
That doesn’t disqualify them, even if it were universally true, which it isn’t.
Freud was not psychotic. His mother was. And that’s what made him the founder of modern psychoanalsis.