Docker v1.40 fails at pulling large images from private jFrog repository under Mac OS

Situation

I can’t post more screenshots here, check the stack overflow question:
https://stackoverflow.com/questions/57569610/docker-v1-40-fails-at-pulling-large-images-from-private-jfrog-repository-under-m

I am trying to pull a docker image from private repository (jFrog). This image is about 2.7gb.

I can pull the image fine on a Windows computer.

The problem:

Everything is fine till the last layer. After 1.08gb is downloaded it fails like this:

After that, it retries like this (notice the updated size of layer, apparently starts off from where it got interrupted before):

and after retrying several times, breaking off at exactly 1.08gb it eventually fails like this:

So it does eventually get to the sum of 2.7gb from all tries, but it fails with

unexpected EOF