The invalid inference to make about the excerpt would be:
Only someone who was medically qualified could declare someone mentally insane.
This statement implies a specific qualification and authority required to declare someone mentally insane, which may not necessarily be supported by the context of the excerpt. The other statements pertain to general attitudes and beliefs about the mentally ill that can be inferred from various historical contexts.