I tried to use the add_action filter I was already using in the first version, but without the do_actino in the acf/pre_save_post filter.
It looks like it works, but I’m still using
add_post_meta( $post_id, '_thumbnail_id', $image );
instead of yours
set_post_thumbnail($post, $attachment_id);
do you suggest to use the second one?