CKError - Service Unavailable (6/2022)

We have enabled CloudKit in our project. It uses a  private database and can have n number of records in database. 

We sometimes get this error:  “CKError(_nsError: <CKError 0x608000846ff0: "Service Unavailable" (6/2022); "Request failed with http status code 503">)”

This problem only occurs when we fetch a large number of records. We use batch operations for fetching records. This error msg doesn’t get received until we download about 8k records but after that it kind of throttles us down. We also get “CKErrorRetryAfterKey” key in infoDictionary along with above error. And when we try after that specific time, it downloads the next batch and throttles us again.

Is there a limit on how many records or how much data we can fetch during a  specific time period?

Is there a way to avoid this error message? 

CKError - Service Unavailable (6/2022)
 
 
Q