This article will assist you with the following errors:
Error: could not handle the request (500), Error: could not handle the request (502)
Cause
These errors can occur when your export is larger than BigQuery's limits. This will cause your export to fail.
Solution
Make sure your reports contain fewer than 40,000 rows. If you are exporting a larger amount of data, please follow the steps in
BigQuery Export Limitations.