A Bloomberg article (https://www.bloomberg.com/news/articles/2021-03-27/how-a-des...) says the speed limit was 7.6 to 8.6 knots but the Ever Given was traveling at 13.5 knots. So maybe they need to start enforcing that limit.
Reportedly this was during high winds, so they could also reduce the speed limit even further in those conditions.
Or they could have Suez specialists be the ones piloting large ships through the canal rather than the ship's normal crew. (As I understand it, that's pretty standard for harbors. Not sure if the Suez already does that.)
Or maybe there's a technology solution, something like stability control for cars, except it's for ships in narrow canals.