At one’s wit’s end

Meaning: So worried, frustrated or tired that you do not know what to do next.

Example: The parents were at their wit’s end trying to calm the baby.