Cache pull step fail randomly

Recently, cache-pull step fails randomly.

The following reason

Failed to get cache download url: failed to send request: Get “[REDACTED]”: read tcp X.X.X.X:XXX>Y.Y.Y.Y:YYY: read: connection reset by peer

we have to consume a lot of credit by cache-pull step failure.

If cache-pull step fails, can i handle it as failure?
and I would like you to investigate the reason.