灵活内容中的ACF发布对象会产生重复/不需要的结果

Here is my code:

<div class="p">
    <?php
        if( have_rows('test', 10) ):
        while ( have_rows('test', 10) ) : the_row(); ?>
            <?php $text = get_sub_field('ex-txt', 10);
                if( !empty($text) ): ?>
                    <span><?php the_sub_field('ex-txt', 10) ?></span>
                <?php endif; ?>

                <?php $post_objects = get_sub_field('test_links', 10);
                    if( $post_objects ): ?>
                        <?php foreach( $post_objects as $post): ?>
                            <?php setup_postdata($post); ?>
                                <span class="link showsthumbnail" >
                                    <a href="<?php the_permalink(); ?>" target="_blank"><?php the_title();?></a>
                                    <div class="follower" id="thumbnail"><?php the_post_thumbnail(); ?></div>
                                </span>
                            <?php endforeach; ?>
                        <?php wp_reset_postdata(); ?>
                    <?php endif; ?>
         <?php endwhile; ?>
         <?php endif; ?>
</div>

Which is working correctly when used outside of a flexible content field in ACF (using it on another part of the site) but does not when placed inside a flexible content loop.

I am getting two divs after every link with the ".follower" class, both with the same featured image, not only the one related to that post.

What i'm looking for is to output the ".showsthumbnail" div is the name and link to a post. Then the ".follower" div which contains the post thumbnail relating to that link. ".follow" is shown when the ".showsthumbnail" div is hovered on. All of that is handled with jQuery.

Works fine as part of a field group (on the other page), but not in the flex field. As an amateur i have little clue what to look for so any help would be appreciated as i'm really at a loss and would like to know what's going wrong.

Thanks!