Project fails to build and cannot generate headers

My project fails to build because of errors in a class caused by failure to access generated headers. I cannot generate the headers, ive tried deleting the binaries and intermediate and that stuff. The DLL wont compile either. here is my log:

1>------ Rebuild All started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Rebuild All started: Project: Star_Cataclysm, Configuration: DebugGame_Editor x64 ------
2>  Cleaning Star_CataclysmEditor Binaries...
2>  Performing full C++ include scan (building a new target)
2>  Using 'git status' to determine working set for adaptive non-unity build.
2>  Using 'git status' to determine working set for adaptive non-unity build.
2>  Creating makefile for Star_CataclysmEditor (no existing makefile)
2>  Performing full C++ include scan (no include cache file)
2>  Parsing headers for Star_CataclysmEditor
2>    Running UnrealHeaderTool "C:\Users\\OneDrive\Documents\Star_Cataclysm\Star_Cataclysm\Star_Cataclysm\Star_Cataclysm.uproject" "C:\Users\\OneDrive\Documents\Star_Cataclysm\Star_Cataclysm\Star_Cataclysm\Intermediate\Build\Win64\Star_CataclysmEditor\DebugGame\Star_CataclysmEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
2>C:/Users//OneDrive/Documents/Star_Cataclysm/Star_Cataclysm/Star_Cataclysm/Source/Star_Cataclysm/CombatStarship.h(15): error : 'CombatStarship' can't be compiled: Parent class 'Starship' has errors
2>EXEC : error : UnrealHeaderTool failed for target 'Star_CataclysmEditor' (platform: Win64, module info: C:\Users\\OneDrive\Documents\Star_Cataclysm\Star_Cataclysm\Star_Cataclysm\Intermediate\Build\Win64\Star_CataclysmEditor\DebugGame\Star_CataclysmEditor.uhtmanifest, exit code: OtherCompilationError (5)).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_4.19\Engine\Build\BatchFiles\Rebuild.bat" Star_CataclysmEditor Win64 DebugGame "C:\Users\\OneDrive\Documents\Star_Cataclysm\Star_Cataclysm\Star_Cataclysm\Star_Cataclysm.uproject" -WaitMutex -FromMsBuild" exited with code -1.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========