Smush gets stuck while optimizing large images

When I’m trying to smush a large image, about 10Mb, Smush says “Smushing in progress..” and never changes the status.

Also, sometimes this makes my WP Admin unaccessible. I’ve tried increasing max_execution_time, but this didn’t help.

There are no errors in debug.log or browser console.