hold it together

Obere Mittelstufe (B2) informal

To stop things — or yourself — from falling apart when everything is hard or going wrong.

"She somehow held it together through the funeral and only broke down when she got home."