pitfall vs spanner in the works

pitfall

noun
  • An antipattern. 

  • A potential, unsuspected, hidden problem, hazard, or danger that is easily encountered but not immediately obvious. 

  • A type of trap consisting of a concealed pit in the ground, which the victim is supposed to fall into and not be able to get out from. 

  • Subsidence below ground in a mine, which can cause the ground level above to drop. 

spanner in the works

noun
  • Something that disrupts smooth operation or functioning; used especially in phrases such as throw a spanner in the works, put a spanner in the works etc. 

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