FClassFinder can not find Blueprints

I am new to UE and i am studing UE5.
I want make a GameModeBase with C++ and set Default Pawn made by Blueprint.

Here’s my code

AQuickStartGameModeBase::AQuickStartGameModeBase()
{
	static ConstructorHelpers::FClassFinder<APawn> finder(
		TEXT("Blueprint'/Game/Blueprints/MyCharacter.MyCharacter_C'")
	);
	if (finder.Succeeded()) {
		DefaultPawnClass = finder.Class;
		UE_LOG(LogTemp, Log, TEXT("Success"));
	}else{
		UE_LOG(LogTemp, Log, TEXT("Fail"));
	}
}

Actually, It works in new project but same code not works in old project.
I don’t know what’s the problem because the old one is almost same as new one.

I want some advice why that code not works my old project.