I found a solution, maybe someone will encounter this in the file RPGGameInstance. h it was necessary to add the line:
UCLASS()
class RPG_API URPGGameInstance : public UGameInstance
{
GENERATED_BODY()
URPGGameInstance(const class FObjectInitializer& ObjectInitializer)
**: Super(ObjectInitializer)
{
};**
You can close the topic.