Field collection item code not working
Paragraphs or Field Collection doesn't matter for your code. You need to add the newly created items to a field.

For example if the field collection field is in a node:

$node-&gt;field_collection_name[] = $new_item;

Not in a form alter hook, but in an entity create hook. See the linked question.