Issue
Revisioned DAM Media entities reference the wrong files prior to version 8.x-1.40
Affected Applications/Limitations
For customers using the media_acquiadam module older than 8.x-1.40, there is a known issue where entity query results were expected to be keyed by entity id, but they are actually keyed by revision id, this was causing media entities to point to the wrong files if they had revisions.
Resolution
Please update the media_acquiadam module to the current stable version, or at a minimum to 8.x-1.40. This will not fix the broken entities, but it will stop additional media entities from pointing to incorrect files if they are revised. Once the media_acquiadam module has been updated, Acquia can help with fixing the affected media entities. Please file a support ticket if one has not already been created for this issue.