Unfortunately, there are no options where you can define the size and type of files that can be uploaded to the product upload fields - you can only define whether or not it is required and whether or not you would want to show a preview of the upload - but no preflight checks or checks to determine if a certain size or type of file is uploaded.
Indeed, it would be interesting to define the type and size before uploading the file. For example, JPG only - 500MB Max
Now, we need to check this after the order is placed. This is not an optimal solution.