had to do something like this to fix it on my project:
onChange={async (e) => { form.setFieldValue(["files"], []); await sleep(10); form.setFieldValue(["files"], e.fileList); }}
sleep(10) is a promise that resolves in ms.