fix(security): redact malformed NDJSON stream diagnostics (#2420)