Because of https://github.com/localgovdrupal/localgov_core/blob/2.x/localgov_core.links.task.yml, if the files view is disabled, accessing the admin/content/media generates a fatal error due to the route defined in localgov_core.links.task.yml but not available.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.files.page_1" does not exist.
Even if the view likely exists in most of the cases, this is not granted, I think the local task should be defined dynamically and not statically https://www.drupal.org/docs/drupal-apis/menu-api/providing-module-defined-local-tasks#dynamic-local-task-generation