sort oneself out

中级 (B1) informal

To fix your own problems and get your life in order.

"After losing his job, he took three months off to sort himself out before looking for work again."