My UE5 crashes as soon as I start it up and tells me it can't create intermediate directory, how do I fix it?

I am trying to start out using UE5, but I can’t launch the program without it crashing. Here is the error message:

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp] [Line: 2632]
Failed to create Intermediate directory ‘…/…/…/…/…/AppData/Local/UnrealEngine/5.2/Intermediate/’.

My computer specs are:
RTX 3060
32 GBs DDR4
i7 12700f