be at your wits' end
be at (one's) wits' end
To be in a state of distress because one has no more patience or mental stamina, often after having dealt with some kind of problem or difficult situation. The baby's been crying for hours, and I'm at my wits' end! I'm at my wits' end, so if this train gets delayed too, I'm going to scream.