Hello,
Keep this option disabled https://prnt.sc/1g7pxz2 It causes the issue with the product gallery.
Regards