Also,
$field_keys[$acf_thumb] = acf_get_all_field_key ( $meta_key, $post_id = $new_post_id );
sets the index of $acf_thumb, but here you are not using this index
foreach ($field_keys as $field_key => $field_value) {
I would assume by looking at your code that this should be
foreach ($field_keys[$acf_thumb] as $field_key => $field_value) {