Is this restrict the size of the InfoPath form or attachments within a form?
If it is an attachment you could do the following:
Add validation to the field:
1. Open the Data Source pane
2. Double-click on field1 to bring up its properties
3. In Validation, add a new condition
4. Select Expression, type this expression in: string-length(.) > 136533
5. Enter the text to be displayed when the error condition occurs
Now when you edit the form, if the image is too big, you will get an error validation and the user will be warned on save.
I haven’t tested this and it will need checking with multiple attachments. The above figure of 136533 is for a 100KB limit. To calculate the relevant figure:
ExpressionLimit = KB * 1024 / 0.75
In SP you'll have to play around with Maximum Upload Size in Central Admin. This setting will more than likely affect more than just your one library.
If it's via email, can you not use your email client?