Compatibility problem when making build with Unreal 5.1.1

I have attempted to make a build of my project and it completes with success but when trying to run the executable I get an incompatibility error with 64-bit versions of Windows (even though I was building for win64).

So, then I found another post that suggested switching to shipping instead of development, and I got a new error like this:

Missing precompiled manifest for ‘DesktopPlatform’, ‘D:\UE_5.1\Engine\Intermediate\Build\Win64\UnrealGame\Shipping\DesktopPlatform\DesktopPlatform.precompiled’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in DesktopPlatform.build.cs to override. If part of a plugin, also check if its ‘Type’ is correct.

And I checked the build.cs file, it already has this line of code. “PrecompileForTargets = PrecompileTargetsType.Any”

Any thoughts on why this is reporting the error and how I can run the build? Thanks