"enhance mask input" option on erosion creates "dragon teeth" spike artifacts

I noticed that I get lines of very sharp spikes, like single vertices, poking up in rows like “dragons teeth” across the boundary of soft erosion masks when “enhance mask input” is checked in the erosion node. It is possible to filter them out, however high frequency filters also tend to remove other detail that should remain. Ideally the “enhance mask input” option wouldn’t generate this error in the first place. Thanks for looking into this!

The reason I joined this forum was to study general content and publish it to people.