Gallery has some floating issues in Safari when CDN enabled

In one of my pages, I have a gallery created using my Divi theme. In Safari the gallery has some floating issues. It happens randomly. When the issue appears if I disable Smush CDN it goes.