I have the exact same problem with the ‘file’ field. Upload 3 images try to delete them and you will end up with one of the images in the gallery and you cannot delete it. If you delete it simultaneously using also the custom field editor and save it, you will end up with an empty string.