at wits end

[at wits end] See: AT ONE'S WIT'S END.