”Should” most certainly. However, often client teams don’t work so closely with backend teams. Or the client team is working from incorrect documentation. Or the client team rightfully assumes that when it reports a file size before uploading, the backend will produce an acceptable error to notify the client.
Seems like there is a bug somewhere - whether artificially imposing a file size limit, or in not imposing the limit correctly.