Shopify has identified this as being an issue with Cloudflare.
Subscribe to updates for Shopify - Increase in Bad Gateway Error via email. You'll receive email notifications when incidents are updated.