Issue with Linking Variant Image in Shopify

Hello,
I’m facing an issue when trying to link the Variant Image to a product through file import. In some cases, the images are duplicated, and I end up with four images instead of just two. In other cases, the Variant Image isn’t linked to the product at all.

Has anyone encountered this issue or have any suggestions on how to fix it?
I would appreciate any help or advice.

It’s all depends on how you do it IDK but can you check if the quality and size of the product image fit for what shopify recommended?

The images are in the Shopify library. If there were any images larger than the recommended size, Shopify would have prevented them. So, I believe it’s a different issue and can be resolved. Thank you!