Instanced mesh crash if the name is generated

Hi. Sorry for the beginner question, but I can’t figure out what should be the problem:

I try to make unique name for instanced static mess, but when it try to add an instance to it after the initialisation,it crash the whole editor, but If I give it a simple name directly, it runs fine.

Here how I set up the name for the instances:

FString uniquename = GetName();
	
int cutpos = uniquename.Find("_");
uniquename.RemoveAt(cutpos, uniquename.Len() - cutpos);

FString Instancedchainlink_sideName = uniquename + "_side";
FString Instancedchainlink_frontName = uniquename + "_front";

FName frontname = FName(*Instancedchainlink_sideName);
FName sidename = FName(*Instancedchainlink_frontName);

Instancedchainlink_side = CreateDefaultSubobject<UInstancedStaticMeshComponent>(*Instancedchainlink_sideName);
Instancedchainlink_front = CreateDefaultSubobject<UInstancedStaticMeshComponent>(*Instancedchainlink_frontName);

//the instanced mesh works fine if I init like this:
Instancedchainlink_side = CreateDefaultSubobject<UInstancedStaticMeshComponent>(TEXT("Instancedchainlink_side"));
Instancedchainlink_front = CreateDefaultSubobject<UInstancedStaticMeshComponent>(TEXT("Instancedchainlink_front"));