Limit the batch size to 512KB

We have still seen the 2MB limit exceeded when using a 1MB
batch size (since the request size expands when serialized),
so reduce this further to 512KB.