Docker image scan fails continuously

The image scan fails after a certain amount of time. I pushed 2 images (sizes 3 GB and 4 GB) to the docker hub and the scan proceeds for a while and after a certain amount of time, it says, “Could not complete image scan”. I tried pushing the image multiple times and still couldn’t find any luck. I don’t understand if it is a bug in the docker or if it has got something to do with the images I am pushing into the docker hub. Anyone else facing the same issue? How do I fix this problem?