I have been crawling the forums and so on to try to find an answer for this issue. Even if it’s a new project or adding to an old one. I still get the same issue. And it is no different if I use a different version. I even reinstalled windows with fresh engine installs and same thing happens.
New or working project → New C++ Code… (And I know the code works as it compiles and runs in the editor without any issues.) → Package project for Windows 64bit… → And then the build failed comes up.