Hi @ht,
Thanks for the post.
To add or update meta within ACF fields, I would recommend you make use of the update_field() function. This functions accepts three parameters, in your case, you will need to pass the field_key, $value and the post id that you want to update the posts to.