Hi,
Product image size you can set in Appearance > Customize > WooCommerce > Product Images.
I would recommend you to use images with the same size, edit images before uploading them to your library and make them either squared or portrait.
Regards,
Hung PD