Avoid timeouts such as #28812 (comment)
This is done by:
- Limiting the maximum number of iterations if the maximum size of the container is "large" (see the magic numbers in the code).
- Check the equality only once. This should be fine, because if a crash were to happen in the equality check, but the crash doesn't happen if further iterations were run, the fuzz engine should eventually find the crash by truncating the fuzz input.