The invalid inference to make about the excerpt is: "Only someone who was medically qualified could declare someone mentally insane."
The excerpt implies that a judge declared Nelly Bly insane without any indication of a medical qualification, suggesting that legal authority alone was sufficient at that moment to make such a declaration. The other options can be inferred based on the context provided in the excerpt.