If the memory size is invalid for whatever reason, discard it.