at a loss vs at one's wits' end

at a loss

prep
  • Below the cost or price of purchase. 

  • Not sure; uncertain; lacking further ideas, direction, or ability. 

at one's wits' end

How often have the words at a loss and at one's wits' end occurred in a corpus of books? (source: Google Ngram Viewer )