Issues trying to build ZED variant of UE4.21

I just want to preface this by saying this is my first real interaction with unreal engine development itself outside of keeping up with cool features and hypotheticals. i have no advanced coding knowledge, but im hoping to work on that with this project.

I am trying to set up a custom build of UE 4.21 so that i can use my ZED 2i camera with unreal in order to build a live scanned 3d environment. I am trying to build UE4 from source, and I have followed this guide:
https://github.com/Stereolabs-Unreal/UnrealEngine

When I build, 3 of the 4 packages install fine, but the fourth one fails. when i try and build again, this is the entire output:

More msg below this chunk

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Target is up to date
1>Copying C:\unreal\UnrealEngine-4.21-zed\Engine\Binaries\Win64\ShaderCompileWorker.exe to C:\unreal\UnrealEngine-4.21-zed\Engine\Binaries\Win64\XGEControlWorker.exe
1>        1 file(s) copied.
1>Deploying ShaderCompileWorker Win64 Development...
1>Total build time: 0.92 seconds (NoActionsToExecute executor: 0.00 seconds)
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Building 72 actions with 16 processes...
2>  [1/72] Module.Sockets.cpp
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(7): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(13): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(19): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(25): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(31): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(37): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(43): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(49): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(55): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(61): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(67): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(73): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(79): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(85): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(91): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(97): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(103): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>  [2/72] Module.Icmp.cpp
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(7): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(13): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(19): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(25): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(31): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(37): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(43): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(49): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(55): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(61): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(67): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(73): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(79): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(85): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(91): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(97): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\ndis/version.h(103): error C4668: 'NDIS_MINIPORT_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>  [3/72] Module.ClothingSystemRuntime.cpp
2>C:\unreal\UnrealEngine-4.21-zed\Engine\Source\ThirdParty\PhysX3\PxShared\src\foundation\include\PsAllocator.h(40): fatal error C1083: Cannot open include file: 'typeinfo.h': No such file or directory
2>  [4/72] Module.BehaviorTreeEditor.cpp
2>C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\BehaviorTreeEditor\Private\DetailCustomizations\BlackboardSelectorDetails.cpp(173): error C4800: Implicit conversion from 'const wchar_t *' to bool. Possible information loss
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\BehaviorTreeEditor\Private\DetailCustomizations\BlackboardSelectorDetails.cpp(173): note: consider using explicit cast or comparison to nullptr to avoid this warning
2>  [5/72] Module.DetailCustomizations.1_of_4.cpp
2>C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Runtime\Core\Public\Misc/Attribute.h(43): error C4800: Implicit conversion from 'const OtherType' to bool. Possible information loss
2>          with
2>          [
2>              OtherType=bool (__cdecl FBodyInstanceCustomizationHelper::* )(void) const
2>          ]
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Runtime\Core\Public\Misc/Attribute.h(46): note: consider using explicit cast or comparison to 0 to avoid this warning
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Runtime\Core\Public\Misc/Attribute.h(46): note: see declaration of 'OtherType'
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\DetailCustomizations\Private\BodyInstanceCustomization.cpp(1620): note: see reference to function template instantiation 'TAttribute<bool>::TAttribute<bool(__cdecl FBodyInstanceCustomizationHelper::* )(void) const>(const OtherType &)' being compiled
2>          with
2>          [
2>              OtherType=bool (__cdecl FBodyInstanceCustomizationHelper::* )(void) const
2>          ]
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\DetailCustomizations\Private\BodyInstanceCustomization.cpp(1625): note: see reference to function template instantiation 'TAttribute<bool>::TAttribute<bool(__cdecl FBodyInstanceCustomizationHelper::* )(void) const>(const OtherType &)' being compiled
2>          with
2>          [
2>              OtherType=bool (__cdecl FBodyInstanceCustomizationHelper::* )(void) const
2>          ]
2>  [6/72] Module.MovieSceneTools.1_of_3.cpp
2>C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\MovieSceneTools\Private\FCPXML\FCPXMLExport.cpp(1058): error C4800: Implicit conversion from 'const wchar_t *' to bool. Possible information loss
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\MovieSceneTools\Private\FCPXML\FCPXMLExport.cpp(1058): note: consider using explicit cast or comparison to nullptr to avoid this warning
2>C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\MovieSceneTools\Private\FCPXML\FCPXMLExport.cpp(1070): error C4800: Implicit conversion from 'const wchar_t *' to bool. Possible information loss
2>  C:\unreal\UnrealEngine-4.21-zed\Engine\Source\Editor\MovieSceneTools\Private\FCPXML\FCPXMLExport.cpp(1070): note: consider using explicit cast or comparison to nullptr to avoid this warning
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\unreal\UnrealEngine-4.21-zed\Engine\Intermediate\Build\Win64\UE4Editor\Development\Sockets\UE4Editor-Sockets.lib
2>                        (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)
2>Total build time: 38.05 seconds (Parallel executor: 0.00 seconds)
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

I have run in admin mode, I have run with VS 2022, 2019 and 2017 to no avail. I unblocked the zip file before extracting, i have removed all permissions from the folders. I have done the basic user stuff, and done all I can find on search without actually modifying code I dont understand.

I have also tried UE4.27.2 with the ZED plugins to suit but i was having another myriad of issues with compatibility. I have also tried to check the Per-User Redirection thing and there is no option for it.

I found a way to make it an option but I had to change some setting to make it an exe and I didn’t want to break something permenantly since i think ive redownloaded so much stuff trying to get this working im scared to check how much data i have left.

Making a post was gonna be my last cry for help so hopefully someone has a solution here.

I have been trying to fix this for days and I’ve found no solution. That being said, it’s 2am, I have a smooth brain and I am probably missing something blindingly obvious, and I’m scared of the consequences of what I could unleash banging my head against the wall for hours again.

If someone can help me fix this, I will mail you a kiss.

Thank you