"Insanity" is a collective term for mental illness. Its plural is usually used in a clinical context when it's important to distinguish different mental illness from one another. The Ngram server shows its popularity peaking around the turn of the last century, when the modern medicine was classifying diseases by their causative agents.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.