Sync files to r2 meet 502 error

I use rclone cli or rest api to sync files from aliyun oss to cloudflare r2, but sometimes I will meet 5XX error saying “InternalError: We encountered an internal connectivity issue. Please try again.status code: 502”, how to resolve it. sometimes I tried many times.