Fastly and other CDN batch error

As Batch is dependent on the order of query string parameters if you are using Fastly or some other CDN they often have "Query String Sort" enabled or it is a good practice to do that, as it will result in more cache hits for you. So if you have added that header in fastly (looks like this in your .vcl set req.url = boltsort.sort(req.url); ) then you should also add condition to it which will say this

req.url !~ "^/batch"

which basically doesnt sort query strings on batches and finally your vcl will look like this.

  if( req.url !~ "^/batch" ) {
        set req.url = boltsort.sort(req.url);
      }

for other CDN's you can apply similar logic and look at this issue here to get more info 
https://www.drupal.org/project/drupal/issues/2879023