This was raised here but not satisfactorily answered: https://powerusers.microsoft.com/t5/Building-Power-Apps/Attachment-Control-in-Edit-Form-with-limit-to-1-file/m-p/191712
When using an attachments control, editing an existing record with attachments, and the max number of attachments are present, it is not possible to remove a file and attach a new one in its place in one submission.
One or more attachments must be removed, the form submitted, and then the edit form reloaded. This will show the attachments control with with room to upload more files. Why can this not be accomplished in one submission?
As an example, I have a form for uploading a screenshot to a record. The Max Attachments is 1. If the user wishes to swap the image file, they must delete, submit, and upload and submit again. I could increase Max Attachments to 2 but unsuspecting users will end up uploading 2 files and then getting confused when they want to swap them out for a third file.