lunacy vs mental instability

lunacy

noun
  • a cyclical mental disease, apparently linked to the lunar phases 

  • insanity implying legal irresponsibility. 

  • Something deeply misguided. 

mental instability

How often have the words lunacy and mental instability occurred in a corpus of books? (source: Google Ngram Viewer )