Im just trying to make a c++ project on unreal

im new to ue4 and i was using unity before i want to make the change, since ue4 looks cool to learn. So i want to make a new c++ project and i get the following error:

Running C:/Program Files/Epic Games/UE_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project="C:/Users/memes/Documents/Unreal Projects/MyProject/MyProject.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject (no existing makefile)
@progress push 5%
Parsing headers for MyProjectEditor
  Running UnrealHeaderTool "C:\Users\memes\Documents\Unreal Projects\MyProject\MyProject.uproject" "C:\Users\memes\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProjectEditor in 15.1157025 seconds
@progress pop
Performing 11 actions (4 in parallel)
[3/11] Resource PCLaunch.rc
[2/11] Resource ModuleVersionResource.rc.inl
SharedPCH.Engine.cpp
Timed out while waiting for GPU to catch up. (0.5 s)
MyProject.cpp
MyProjectCharacter.cpp
MyProjectGameMode.cpp
MyProject.init.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.

c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
MyProjectCharacter.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.

c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
MyProjectGameMode.gen.cpp
ERROR: UBT ERROR: Failed to produce item: C:\Users\memes\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll
Total build time: 129.91 seconds (Local executor: 0.00 seconds)

Initlal compilation fails. As decribed in error you running out of virtual memory, it a memory stored in hard drive in case of running out of hardware memory and prevent out of memory condition which usually ends with BSOD and forced restart. Windows slao moves stuff to virtual memory if application is not myuch active, to save up space for application that need hardware memory. But compilation, specially done i multiple threads, that a lot of memory which ends up filling hardware memory pretty fast Potentially you running out of disk space which contains paging file and Windows can allocate more space for it.

Review you virtual memory setup in you system:

You can set up pagefile on any drive or even multiple, the more maximum file size you can set the better, the faster and lower leniency of a drive the faster virtual memory = less slow down in low hardware memory conditions = faster compilation. Optane drive is the best for this task as it has lowest lentency of all non-voiletile storage solutions available on market, NVMe is 2nd choose.

Potentially you can also reduce number of compilation threads, this will reduce memory usage, you can read how to do it here:

Ofcorse this will increase compilation time, but free up not only memory usage but also CPU usage during compilation