Jannot Gilbert, Psychiatre à Nice