I have used the following code example and got the same artifacts as my code using a custom node.
Simple normal-based edge detection Post-Process Material | Epic Developer Community
In the world normal view you can a single pixel is randomly pink. (Highlighted in the Yellow ring).
I have no idea what is causing this.
