Access Denied error when building C++ project.

//Getting the below Access Denied error when trying to compile a basic C++ project from VSCode.
I’m using Unreal Engine 5.3.2 on Windows 11.

Running C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“C:/Users/micha/OneDrive/Dokumenty/Unreal Projects/MyProject/MyProject.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/micha/OneDrive/Dokumenty/Unreal Projects/MyProject/MyProject.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\micha\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for MyProjectEditor (no existing makefile)
@progress push 5%
Parsing headers for MyProjectEditor
Running Internal UnrealHeaderTool “C:\Users\micha\OneDrive\Dokumenty\Unreal Projects\MyProject\MyProject.uproject” “C:\Users\micha\OneDrive\Dokumenty\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest” -WarningsAsErrors -installed
Total of 14 written
Reflection code generated for MyProjectEditor in 1.7579406 seconds
@progress pop
Building MyProjectEditor…
Using Visual Studio 2022 14.39.33522 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 (6 physical cores, 12 logical cores)
Executing up to 6 processes, one per physical core
Requested 1.5 GB memory per action, 4.3 GB available: limiting max parallel actions to 2
------ 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_helperFHazardPointerCollection::FHazardRecord(_T ,size_t) noexcept()" funkcji szablon
with
[
_T=FHazardPointerCollection::FHazardRecord
]
Total time in Parallel executor: 28.01 seconds
Total execution time: 48.29 seconds
*

strong text

**