Restricting a Media-MultipleMedia field to a given number

I think you can try dynamic zone approach like me. So, you need to create single component image and wrap to dynamic zone. Then, you can limit the images by limit the dynamic zone components max value.