Materials suddenly not working, game copied and now UE5 only crashes

Hey, I’m a student who’s 17 years old and I’m in a game design class where we are using unreal engine 5.0.3 and following this video, Create a Zombie First Person Shooter Game | Unreal Engine 5 Beginner Tutorial - YouTube, suddenly when I played the game I created, all the materials stopped working and when I opened each of the materials, it said that there was no instance. To try to fix this problem, I reimported the materials and changed the names of the original materials. Changing the name of the materials caused the materials to work. I later noticed a video(Why Unreal Engine 5.1 is a Huge Deal - YouTube) that could have a fix that said to duplicate the game, so then I duplicated the entire game and now I can’t open unreal at all. Whenever I try to open unreal, it gives me this error code
LoginId:
EpicAccountId:

Fatal error: [File:/Users/build/Build/++UE5/Sync/Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp] [Line: 2327] Failed to compile default material DefaultDeferredDecalMaterial!

FMaterial::CacheShaders(FMaterialShaderMapId const&, EShaderPlatform, EMaterialShaderPrecompileMode, ITargetPlatform const*) Address = 0x11963b859 (filename not found) [in UnrealEditor-Engine.dylib]
FMaterial::CacheShaders(EShaderPlatform, EMaterialShaderPrecompileMode, ITargetPlatform const*) Address = 0x1195f7023 (filename not found) [in UnrealEditor-Engine.dylib]
UMaterial::CacheShadersForResources(EShaderPlatform, TArray<FMaterialResource*, TSizedDefaultAllocator<32> > const&, EMaterialShaderPrecompileMode, ITargetPlatform const*) Address = 0x11952386b (filename not found) [in UnrealEditor-Engine.dylib]
UMaterial::CacheResourceShadersForRendering(bool, EMaterialShaderPrecompileMode) Address = 0x11951e5f8 (filename not found) [in UnrealEditor-Engine.dylib]
UMaterial::PostLoad() Address = 0x1195297df (filename not found) [in UnrealEditor-Engine.dylib]
UObject::ConditionalPostLoad() Address = 0x10e781d9d (filename not found) [in UnrealEditor-CoreUObject.dylib]
UMaterialInterface::PostLoadDefaultMaterials() Address = 0x1195170d7 (filename not found) [in UnrealEditor-Engine.dylib]
UMaterialInterface::PostLoad() Address = 0x1195fb49d (filename not found) [in UnrealEditor-Engine.dylib]
UMaterial::PostLoad() Address = 0x1195281d3 (filename not found) [in UnrealEditor-Engine.dylib]
UObject::ConditionalPostLoad() Address = 0x10e781d9d (filename not found) [in UnrealEditor-CoreUObject.dylib]
EndLoad(FUObjectSerializeContext*, TArray<UPackage*, TSizedDefaultAllocator<32> >) Address = 0x10e90719d (filename not found) [in UnrealEditor-CoreUObject.dylib]
LoadPackageInternal(UPackage
, FPackagePath const&, unsigned int, FLinkerLoad*, FArchive*, FLinkerInstancingContext const*, FPackagePath const*) Address = 0x10e90529b (filename not found) [in UnrealEditor-CoreUObject.dylib]
LoadPackage(UPackage*, FPackagePath const&, unsigned int, FArchive*, FLinkerInstancingContext const*, FPackagePath const*) Address = 0x10e9086b3 (filename not found) [in UnrealEditor-CoreUObject.dylib]
LoadPackage(UPackage*, char16_t const*, unsigned int, FArchive*, FLinkerInstancingContext const*) Address = 0x10e9023f5 (filename not found) [in UnrealEditor-CoreUObject.dylib]
ResolveName(UObject*&, FString&, bool, bool, unsigned int, FLinkerInstancingContext const*) Address = 0x10e900193 (filename not found) [in UnrealEditor-CoreUObject.dylib]
StaticLoadObjectInternal(UClass*, UObject*, char16_t const*, char16_t const*, unsigned int, UPackageMap*, bool, FLinkerInstancingContext const*) Address = 0x10e902b9e (filename not found) [in UnrealEditor-CoreUObject.dylib]
StaticLoadObject(UClass*, UObject*, char16_t const*, char16_t const*, unsigned int, UPackageMap*, bool, FLinkerInstancingContext const*) Address = 0x10e8def19 (filename not found) [in UnrealEditor-CoreUObject.dylib]
UStaticMesh* ConstructorHelpersInternal::FindOrLoadObject(FString&, unsigned int) Address = 0x118c81d97 (filename not found) [in UnrealEditor-Engine.dylib]
ConstructorHelpers::FObjectFinder::FObjectFinder(char16_t const*, unsigned int) Address = 0x118c81bbf (filename not found) [in UnrealEditor-Engine.dylib]
UCameraComponent::UCameraComponent(FObjectInitializer const&) Address = 0x118c35e6c (filename not found) [in UnrealEditor-Engine.dylib]
UClass::CreateDefaultObject() Address = 0x10e5dbf42 (filename not found) [in UnrealEditor-CoreUObject.dylib]
UClass::GetDefaultObject(bool) const Address = 0x10e4c4797 (filename not found) [in UnrealEditor-CoreUObject.dylib]
FObjectInitializer::CreateDefaultSubobject(UObject*, FName, UClass const*, UClass const*, bool, bool) const Address = 0x10e91a7f6 (filename not found) [in UnrealEditor-CoreUObject.dylib]
UObject::CreateDefaultSubobject(FName, UClass*, UClass*, bool, bool) Address = 0x10e77b65b (filename not found) [in UnrealEditor-CoreUObject.dylib]
ACameraActor::ACameraActor(FObjectInitializer const&) Address = 0x118c30a41 (filename not found) [in UnrealEditor-Engine.dylib]
UClass::CreateDefaultObject() Address = 0x10e5dbf42 (filename not found) [in UnrealEditor-CoreUObject.dylib]
UClass::GetDefaultObject(bool) const Address = 0x10e4c4797 (filename not found) [in UnrealEditor-CoreUObject.dylib]
ProcessNewlyLoadedUObjects(FName, bool) Address = 0x10e8eb105 (filename not found) [in UnrealEditor-CoreUObject.dylib]
FEngineLoop::PreInitPostStartupScreen(char16_t const*) Address = 0x10071d1af (filename not found) [in UnrealEditor]
GuardedMain(char16_t const*) Address = 0x10070b62e (filename not found) [in UnrealEditor]
-[UEAppDelegate runGameThread:] Address = 0x100727033 (filename not found) [in UnrealEditor]
-[FCocoaGameThread main] Address = 0x10af17561 (filename not found) [in UnrealEditor-Core.dylib]
Unknown() Address = 0x7ff81060c82c (filename not found) [in Foundation]
_pthread_start Address = 0x7ff80f7a7259 (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7ff80f7a2c7b (filename not found) [in libsystem_pthread.dylib]