xīn​láo​jì​chù

at one's wits' end