lose one's marbles vs lose the plot

lose one's marbles

verb
  • Synonym of lose one's mind (“to become crazy”) 

lose the plot

verb
  • To lose sight of an important objective or principle; to act contrarily to one's own interests through concentrating on relatively unimportant matters. 

  • Used other than figuratively or idiomatically: see lose, plot. 

  • To cease to behave in a consistent and/or rational manner. 

How often have the words lose one's marbles and lose the plot occurred in a corpus of books? (source: Google Ngram Viewer )