New First Person project wont compile eu5

I’m new to Unreal Engine and I’m trying to make new project in C++, but it fails and displays:
The project could not be compiled. Would you like to open it in Visual Studio 2022?


Running C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="C:/Users/jarro/Desktop/UE5/AleCzemu/test1/test1.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="C:/Users/jarro/Desktop/UE5/AleCzemu/test1/test1.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\jarro\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for test1Editor (no existing makefile)
@progress push 5%
Parsing headers for test1Editor
  Running Internal UnrealHeaderTool C:\Users\jarro\Desktop\UE5\AleCzemu\test1\test1.uproject C:\Users\jarro\Desktop\UE5\AleCzemu\test1\Intermediate\Build\Win64\test1Editor\Development\test1Editor.uhtmanifest -WarningsAsErrors -installed
Total of 14 written
Reflection code generated for test1Editor in 1.0957681 seconds
@progress pop
Building test1Editor...
Using Visual Studio 2022 14.39.33521 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
  Executing up to 8 processes, one per physical core
------ Building 19 action(s) started ------
[1/19] Resource Default.rc2
[2/19] Compile [x64] SharedPCH.Engine.Cpp20.cpp
C:\Program Files\Epic Games\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): error C2248: "FHazardPointerCollection::FHazardRecord::FHazardRecord": nie mo?na uzyska? dost?pu do private sk?adowa zadeklarowanych w klasie "FHazardPointerCollection::FHazardRecord"
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(86): note: zobacz deklaracj? "FHazardPointerCollection::FHazardRecord::FHazardRecord"
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(77): note: zobacz deklaracj? "FHazardPointerCollection::FHazardRecord"
C:\Program Files\Epic Games\UE_5.3\Engine\Source\predefined C++ types (compiler internal)(420): note: kontekst tworzenia wyst?pienia szablonu (najpierw najstarszy) to
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h(133): note: zobacz odwo?anie do kompilowanego tworzenia wyst?pienia "void __builtin_array_init_helper<FHazardPointerCollection::FHazardRecord>(_T *,size_t) noexcept(<expr>)" funkcji szablon
        with
        [
            _T=FHazardPointerCollection::FHazardRecord
        ]
Total time in Parallel executor: 15.64 seconds
Total execution time: 19.18 seconds

There’s no such problem when creating new project using blueprints. Help would be greatly appreciated.