The invalid inference to make about the excerpt is:
Only someone who was medically qualified could declare someone mentally insane.
The excerpt does not provide evidence that a medical qualification was necessary for declaring someone insane. In fact, it illustrates that Captain Duffy, a judge, made the determination of Bly's insanity, suggesting that individuals without medical qualifications were capable of making such declarations.