Improve memory error detection for less false positives