/Engine/Source/Runtime/GeometryCore/Public/DynamicMeshEditor.h
This enum/argument controls the behavior. However, fundamentally this kind of problem should be handled upstream!! For example by not trying to remesh areas that contain nonmanifold geometry...
enum EDuplicateTriBehavior { EnsureContinue, EnsureAbort, UseExisting, Replace, }