invalidating vs undermining

invalidating

undermining

noun
  • The act or process by which something is undermined. 

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