May can the redirects marked as such ? by giving a 301 response ? or if not possible the Rel="canonical" can be added to the link?
According to the MOZ Page about duplicate content (https://moz.com/learn/seo/duplicate-content) that should prevent such possible penalities.