But in my case, installing WPML SEO does not fix the issue. I still see the duplicates in the sitemap and I'm using the latest version of WPML extensions and Yoast.
I also tried to disable the rest of the plugins from my site and to use a default theme, but the problem persists.