Reduce max retries from 50 to 10

Currently, when a single request to the CAPI fails, it retries 50 times. For genuine failures (i.e. CAPI is down), this will take quite a long time. With exponential backoff, a request shouldn't need to retry more than a couple of times. Hence, reducing this to a more reasonable 10.