To replicate the bug, create an async collection_upload field and set it's maximum number of files to 1.
- select file
- upload it
- when the upload finishes, click "Cancel" to remove the file from the form
- select another file
And there you go - Maximum file number exceeded error.