go haywire vs malfunction

go haywire

malfunction

verb
  • To fail to function. 

  • To function improperly. 

noun
  • Failure to function. 

  • Faulty functioning. 

How often have the words go haywire and malfunction occurred in a corpus of books? (source: Google Ngram Viewer )