Error updating core from 8.4.0 to 8.4.2 caused by media_entity update

I’m trying to update acquia/lightning from 2.2.0 to 2.2.3 which updates drupal/core from 8.4.0 to 8.4.2. After executing 

drush updb

I get the following output:

The following updates are pending:

lightning_media module : 
  8018 -   Updates the media browser's argument validation. 

media_entity module : 
  8200 -   Clears the module handler's hook implementation cache. 
  8201 -   Replace Media Entity with Media. 

Do you wish to run all pending updates? (y/n): y
Performing media_entity_update_8200 [ok]
'field_config' entity with ID 'media.image.field_media_in_library' already exists. [error]
Performing media_entity_update_8201 [ok]
Failed: 'field_config' entity with ID 'media.image.field_media_in_library' already exists. [error]
Cache rebuild complete. [ok]
Finished performing updates. [ok]

Before this command I rebuilt the cache. Does anybody have any idea how to fix this error?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/21/feed