Help with C++ Class errors

GIANT EDIT: Ok, so apparently I’m an idiot because I solved my own issue, my file path for the game was to long and UE4 just couldn’t handle it. Once I shortened the file path and brought it back a few folders on my F: Drive, everything was fine. I guess UE doesn’t long drive file paths and throws a hissy fit if your file structure is to long.

I’ve been following a UE4 course by GameDev.TV and in this course, at the start, they wanted you to create a “basePawn” C++ Class. but when I go to do that, I run into an error that I just don’t understand at all.

(this was what I had posted over at their forums)

I went to make the “BasePawn” as instructed, but then UE4, version 4.27.2, threw an error I don’t understand. It won’t create the “BasePawn” class and “destroys it” whatever that means. Even though I was able to find the BasePawn .h and .cpp files. What am I doing wrong here and what does this error mean?

[2022.03.24-23.14.13:971][466]Discovering modules, targets and source code for project…

[2022.03.24-23.14.14:673][466]While compiling F:\Audio and Video MEDIA projects\Unreal Engine Udemy course resources and downloads\Unreal Course downloads\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanks\Intermediate\Build\BuildRules\ToonTanksModuleRules.dll:

[2022.03.24-23.14.14:673][466]error CS1619: Cannot create temporary file ‘’ – The data area passed to a system call is too small.

[2022.03.24-23.14.14:673][466]ERROR: Unable to compile source files.

[2022.03.24-23.14.27:260][466]LogSlate: Window ‘Message’ being destroyed

[2022.03.24-23.14.27:266][466]Message dialog closed, result: Yes, title: Message, text: Successfully added class ‘BasePawn’, however you must recompile the ‘ToonTanks’ module before it will appear in the Content Browser. Failed to generate project files.

Would you like to open the Output Log to see more details?

[2022.03.24-23.14.27:268][466]LogSlate: Window ‘Add C++ Class’ being destroyed

Furthermore, when I go to tell UE4 for “generate Visual Studio Code Project” it throws this error too.

Running F:/Epic Games Dev kits/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“F:/Audio and Video MEDIA projects/Unreal Engine Udemy course resources and downloads/Unreal Course downloads/ToonTanksProjectSetup_4.25/ToonTanksProjectSetup_4.25/ToonTanksProjectSetup_4.25/ToonTanks/ToonTanks.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
While compiling F:\Audio and Video MEDIA projects\Unreal Engine Udemy course resources and downloads\Unreal Course downloads\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanks\Intermediate\Build\BuildRules\ToonTanksModuleRules.dll:
error CS1619: Cannot create temporary file ‘’ – The data area passed to a system call is too small.
ERROR: Unable to compile source files.