Image preview not working in the media library

When Smush is activated, images are missing or preview not working in media library.