Oliver Wendell Holmes Sr. said this quote

Insanity is often the logic of an accurate mind overtasked. Good mental machinery ought to break its own wheels and levers, if anything is thrust among them suddenly which tends to stop them or reverse their motion. A weak mind does not accumulate force enough to hurt itself; stupidity often saves a man from going mad.