Unreal Engine 5+ Unable to find target when building a C++ build

There was a problem with creating a build on versions UE 5+ (test 5.4, 5.6, 5.7) with C++.
When packing, the error Unable to find target occurs. I marked the problem location with an arrow ( —> )
LogUObjectHash: Compacting FUObjectHashTables data took 0.51msLogTurnkeySupp - Pastebin.com (all paths are saved)

And here is the full log. The same arrow.

There is an oddity in this log. An intermediate Source appeared on the way from somewhere.

Searching for target rule files in C:/Source/Programs/UnrealProjects/ActionSlasher

At the same time, projects on pure Blueprint are build normally, as are projects of version 4.27. The pattern is only on projects of the 5th version of the engine, and newly created ones.

All versions were installed from Epic Games

UPDATE:
The error occurs on the Windows 11 environment. There is no error on Windows 10.