Nucé De Lamothe (De) Pierre, Psychiatre à Montpellier