I’ve had success with going from a 4-2-3-1 or 4-3-3 to a varied 4-2-3-1 with the wingers dropped back on the flanks of two defensive mids, 1 mid ahead of the DMs and the striker on a shadow striker role or pressing forward.
I then do what others have suggested, hitting regroup, slow pace down, lower the tempo, Disciplined and Dribble less. Lowest I’ll set the mentality is balanced. If I’m very panicky I’ll hit defensive lol