net/mlx5: Fix incorrect page count when in internal error