Why is it when i open a new C++ project after 5 min it says "Compile Failed" plz Help!

The project could not be compiled. Would you like to open it in Visual Studio?

Running F:/Unreal Engine 4/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe BattleClicker Development Win64 -project=“C:/Users/lawso/Documents/Unreal Projects/BattleClicker/BattleClicker.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for BattleClicker (no existing makefile)
@progress push 5%
Parsing headers for BattleClickerEditor
Running UnrealHeaderTool “C:\Users\lawso\Documents\Unreal Projects\BattleClicker\BattleClicker.uproject” “C:\Users\lawso\Documents\Unreal Projects\BattleClicker\Intermediate\Build\Win64\BattleClickerEditor\Development\BattleClickerEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for BattleClickerEditor in 13.9883531 seconds
@progress pop
Performing 9 actions (4 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
[3/9] Resource PCLaunch.rc
SharedPCH.Engine.cpp
BattleClicker.cpp
BattleClickerGameModeBase.gen.cpp
BattleClicker.init.gen.cpp
BattleClickerGameModeBase.cpp
C:\Users\lawso\Documents\Unreal Projects\BattleClicker\Source\BattleClicker\BattleClicker.cpp(7): fatal error C1001: An internal error has occurred in the compiler.
(compiler file ‘msc1.cpp’, line 1511)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
F:\Unreal Engine 4\UE_4.19\Engine\Source\Runtime\Core\Public\Containers/Map.h(813): fatal error C1001: An internal error has occurred in the compiler.
(compiler file ‘msc1.cpp’, line 1511)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
F:\Unreal Engine 4\UE_4.19\Engine\Source\Runtime\Core\Public\Containers/Map.h(859): note: see reference to class template instantiation ‘TSortableMapBase’ being compiled
with
[
KeyType=FWeakObjectPtr,
ValueType=TMap<FName,FString,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FString,false>>,
SetAllocator=FDefaultSetAllocator,
KeyFuncs=TDefaultMapHashableKeyFuncs<FWeakObjectPtr,TMap<FName,FString,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FString,false>>,false>
]
F:\Unreal Engine 4\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/MetaData.h(25): note: see reference to class template instantiation ‘TMap>,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs>,false>>’ being compiled
with
[
KeyType=FName,
ValueType=FString
]
F:\Unreal Engine 4\UE_4.19\Engine\Source\Runtime\Core\Public\Containers/Map.h(813): fatal error C1001: An internal error has occurred in the compiler.
(compiler file ‘msc1.cpp’, line 1511)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
F:\Unreal Engine 4\UE_4.19\Engine\Source\Runtime\Core\Public\Containers/Map.h(859): note: see reference to class template instantiation ‘TSortableMapBase’ being compiled
with
[
KeyType=FWeakObjectPtr,
ValueType=TMap<FName,FString,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FString,false>>,
SetAllocator=FDefaultSetAllocator,
KeyFuncs=TDefaultMapHashableKeyFuncs<FWeakObjectPtr,TMap<FName,FString,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,FString,false>>,false>
]
F:\Unreal Engine 4\UE_4.19\Engine\Source\Runtime\CoreUObject\Public\UObject/MetaData.h(25): note: see reference to class template instantiation ‘TMap>,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs>,false>>’ being compiled
with
[
KeyType=FName,
ValueType=FString
]
C:\Users\lawso\Documents\Unreal Projects\BattleClicker\Source\BattleClicker\BattleClickerGameModeBase.cpp(8): fatal error C1001: An internal error has occurred in the compiler.
(compiler file ‘msc1.cpp’, line 1511)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
ERROR: UBT ERROR: Failed to produce item: C:\Users\lawso\Documents\Unreal Projects\BattleClicker\Binaries\Win64\UE4Editor-BattleClicker.dll
Total build time: 326.98 seconds (Local executor: 0.00 seconds)

Maybe provide some code ? BattleClicker.cpp line 8.

Maybe try to delete all of the temporary files created, you can try to open the project and select Clean from the Build menu.

Ok I will try that but this is so annoying

I believe that something similar has happened to me before. If the project is not compiling, then most likely there is an error in the C++ code. Go to your project file and open visual studio for that project, and look for the error to correct it. To avoid from this from happening again, remove errors and compile before closing visual studio/unreal editor.