Compile errors when upgrading from 4.26 to 5.6

I’m trying to upgrade my 4.26 project to 5.6. I’ve been getting these errors below. I finally got fed up and commented out literally every file in my project and then it started hitting in the VisualStudioTools plugin (seen below) which is when I decided it was time to come here.

Google is not finding any examples of other people hitting this so I’m not sure what’s up. I’ve tried cleaning the solution and deleting my intermediate folder and it’s still the same.

Any help?

2>[41/56] Compile [x64] Module.VisualStudioTools.cpp
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(738,51): error C3533: a parameter cannot have a type that contains 'auto'
2>	constexpr static inline uint32 BuildMask(auto... Types)
2>	                                                 ^
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(738,51): error C3543: 'unknown-type': does not contain a parameter pack
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(740,15): error C2059: syntax error: '...'
2>		return (0 | ... | BuildMask(Types));
2>		            ^
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(738,33): error C3615: constexpr function 'FLoadPackageAsyncProgressDelegate::BuildMask' cannot result in a constant expression
2>	constexpr static inline uint32 BuildMask(auto... Types)
2>	                               ^
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(738,33): note: failure was because type 'unknown-type...' is not a literal type
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(738,33): note: failure was caused by control reaching the end of a constexpr function
2>D:\Program Files\Epic Games\UE_5.6\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectGlobals.h(745,1): fatal error C1903: unable to recover from previous error(s); stopping compilation
2>		if (Mask & BuildMask(Params.ProgressType))
2>^

I reverted everything and started over and it went away. Something must have went wrong in the initial conversion.