C++ UE5 AttachToComponent(RootComponent);

is the error the same? can you post an image of the log filtered by errors?