Need help debugging

I actually create new components as a local variable in a function with:

UPhysicsHandleComponent * PhysicsHandle = NewObject<UPhysicsHandleComponent>(this);

PhysicsHandle->RegisterComponent();

Maybe it’s the type of the component that influentiates that or the register component function that allows that to work. I also save them to an array that is a variable of the class.