I’m using Unreal5, but what i’ve found is the AddComponentByClass();
AddComponentByClass(TSubclassOf<UActorComponent> Class, bool bManualAttachment, const FTransform& RelativeTransform, bool bDeferredFinish)
and for example:
AddComponentByClass(UMyComponent::StaticClass, false, SpawnTransform, false);
This uses the NewObject method and will register your component.