Thomas, there’s no built-in feature to do this. The following third-party add-on adds many features to Gravity Forms uploads, but I’m not sure if it could do what you’re looking for, I would recommend to ask the author about it: https://imagehopper.tech/
There are also some validation filters that you could use to create your own custom code to perform a validation of the files being uploaded: