Trying to build https://github.com/MICROSOFT-XBOX-ATG/MICROSOFT_UWP_UNREAL getting error: An item with the same key has already been added

2>Creating makefile for UE4Editor (no existing makefile)

2>Performing full C++ include scan (no include cache file)

2>EXEC : error : System.ArgumentException: An item with the same key has already been added.

2> at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

2> at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

2> at UnrealBuildTool.UEBuildTarget.Build(BuildConfiguration BuildConfiguration, CPPHeaders Headers, List1 OutputItems, List1 UObjectModules, ActionGraph ActionGraph) in E:\GitHub\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 2403

2> at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile) in E:\GitHub\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line 1396

2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.

2>Done building project “UE4.vcxproj” – FAILED.

Looking at the following post:

I tracked down the plugin with the issue:
\Engine\Plugins\Media\MfMedia\MfMedia.uplugin

It contains 2 MfMediaFactory modules, I removed the first one and my build was able to continue.