Plot twist. The memory bit flip checking code was actually buggy and contained UB.
No, seriously did you actually verify the code for correctness before relying on it's results?