Fix incorrect wording of error messages about memory limits.