to be going very badly wrong and likely to stop functioning completely
be falling / coming apart at the seams
to be going very badly wrong and likely to stop functioning completely
She was falling apart at the seams, spending most of her time in tears.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition