Ahh, I think I see. If you’re still looking to do that you need to check the post_type value of the post being updated. The ACF fields are being changed because you’re changing all post slugs, which is altering the field keys of the custom fields. Fields in ACF are a custom post type that the field keys are the post titles.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users