Unreal slate module project compile error

Hi everyone.
I develop unreal slate program using UE 5.4.1 source.
For 3D rendering, if i add the “Engine” into the build.cs file, compile error occurs in UE source code.
I didn’t change this code and UE 5.4.1 source code was compiled successfully already.
… …
1>[18/446] Compile [x64] PCH.CoreUObject.cpp
1>[19/446] Generate Header [x86-64] PBDCollisionSolver.ispc
1>[20/446] Copy [x86-64] PBDCollisionSolver.ispc.generated.h
1>[21/446] Generate Header [x86-64] PBDAxialSpringConstraints.ispc
1>[22/446] Copy [x86-64] PBDAxialSpringConstraints.ispc.generated.h
1>[23/446] Generate Header [x86-64] AnimEncoding_PerTrackCompression.ispc
1>[24/446] Copy [x86-64] AnimEncoding_PerTrackCompression.ispc.generated.h
1>[25/446] Generate Header [x86-64] PBDEvolution.ispc
1>[26/446] Copy [x86-64] PBDEvolution.ispc.generated.h
1>[27/446] Compile [x64] SharedPCH.Engine.Cpp20.cpp
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Components\ActorComponent.h(429): error C3668: ‘UActorComponent::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\GameFramework\Actor.h(3550): error C3668: ‘AActor::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Animation\AnimNotifies\AnimNotify.h(109): error C3668: ‘UAnimNotify::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Animation\AnimInstance.h(1466): error C3668: ‘UAnimInstance::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Engine\NetDriver.h(1766): error C3668: ‘UNetDriver::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Engine\NetConnection.h(922): error C3668: ‘UNetConnection::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Public\Subsystems\WorldSubsystem.h(22): error C3668: ‘UWorldSubsystem::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Engine\World.h(2805): error C3668: ‘UWorld::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Engine\Level.h(845): error C3668: ‘ULevel::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Engine\LevelStreaming.h(555): error C3668: ‘ULevelStreaming::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>E:\Dev\UE Source\UnrealEngine-5.4.1-release\Engine\Source\Runtime\Engine\Classes\Engine\LocalPlayer.h(304): error C3668: ‘ULocalPlayer::GetWorld’: method with override specifier ‘override’ did not override any base class methods
1>[28/446] Generate Header [x86-64] PBDBendingConstraints.ispc
1>[29/446] Copy [x86-64] PBDBendingConstraints.ispc.generated.h
… …

My build.cs file is folllowing.
… …
PrivateDependencyModuleNames.AddRange(
new string {
“AppFramework”,
“Core”,
“ApplicationCore”,
“Projects”,
“Slate”,
“SlateCore”,
“StandaloneRenderer”,
“Engine”,
“InputCore”,
}
);
… …
If just "Engine"module is added, error occurs. without “Engine”, it is normal.
How can i fix this problem?
Hope your helping hands…

If you are planning on accessing engine in either plugins or externaly then move it to the public dependencies