The error No Failed. Response code = 502. Response message = Bad Gateway. occurs when the feed file contains too many images that exceed a certain limit. The error is caused by Shopify. Shopify downloads the images too fast causing the image server to go down.
We recommend reducing the number of images needed to import or just try a few times (sometimes this works).