How to fix «The checksum verification of the file failed» in Magento Cloud while installing `magento/magento-cloud-components`?

01

W: - Installing magento/magento-cloud-components (1.0.0): Downloading (100%)
W: [UnexpectedValueException]
W: The checksum verification of the file failed (downloaded from https://repo.magento.com/archives/magento/magento-cloud-components/magento-magento-cloud-components-1.0.0.0.zip)
E: Error building project: composer could not be run.

The full log:

git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\dfediuk\AppData\Local\Temp\c2e20amy.bjy -a

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin magento_downgrade:magento_downgrade
Pushing to 6le7yxm6zbcym@git.us-3.magento.cloud:6le7yxm6zbcym.git
Hello Sam (UUID: 7ccfe489-7f44-4e3b-bb5c-dde21217aa63), you successfully connected, but the service 6le7yxm6zbcym doesn't exist or you do not have access to it

Validating submodules

Validating configuration files

Processing activity: Dmitry Fedyuk pushed to magento_downgrade
    Found 1 new commit


    Building application 'mymagento' (runtime type: php:7.2, tree: 8566aa1)
      Generating runtime configuration.
      
      Moving the application to the output directory

      Prewarming composer cache.
        Pre-downloaded 1 packages referenced in `composer.lock`
      
      Found a `composer.json`, installing dependencies.
        W: Loading composer repositories with package information
        W: Installing dependencies (including require-dev) from lock file
        W: Package operations: 447 installs, 0 updates, 0 removals
        W:   - Installing magento/magento-composer-installer (0.1.13): Loading from cache
        W:   - Installing zendframework/zend-stdlib (2.7.7): Loading from cache
        W:   - Installing zendframework/zend-hydrator (1.1.0): Loading from cache
        W:   - Installing psr/container (1.0.0): Loading from cache
        W:   - Installing container-interop/container-interop (1.2.0): Loading from cache
        W:   - Installing zendframework/zend-validator (2.11.1): Loading from cache
        W:   - Installing zendframework/zend-escaper (2.6.0): Loading from cache
        W:   - Installing zendframework/zend-uri (2.7.0): Loading from cache
        W:   - Installing zendframework/zend-servicemanager (2.7.11): Loading from cache
        W:   - Installing zendframework/zend-loader (2.6.0): Loading from cache
        W:   - Installing zendframework/zend-http (2.8.4): Loading from cache
        W:   - Installing psr/http-message (1.0.1): Loading from cache
        W:   - Installing zendframework/zend-diactoros (1.8.6): Loading from cache
        W:   - Installing zendframework/zend-psr7bridge (0.2.2): Loading from cache
        W:   - Installing zendframework/zend-filter (2.9.1): Loading from cache
        W:   - Installing zendframework/zend-inputfilter (2.10.0): Loading from cache
        W:   - Installing zendframework/zend-form (2.13.0): Loading from cache
        W:   - Installing zendframework/zend-eventmanager (2.6.4): Loading from cache
        W:   - Installing zendframework/zend-console (2.7.0): Loading from cache
        W:   - Installing zendframework/zend-mvc (2.7.15): Loading from cache
        W:   - Installing zendframework/zend-math (2.7.1): Loading from cache
        W:   - Installing zendframework/zend-crypt (2.6.0): Loading from cache
        W:   - Installing zendframework/zend-code (3.3.1): Loading from cache
        W:   - Installing tedivm/jshrink (v1.3.3): Loading from cache
        W:   - Installing symfony/process (v4.1.12): Loading from cache
        W:   - Installing symfony/polyfill-mbstring (v1.11.0): Loading from cache
        W:   - Installing symfony/console (v4.1.12): Loading from cache
        W:   - Installing oyejorge/less.php (v1.7.0.14): Loading from cache
        W:   - Installing psr/log (1.1.0): Loading from cache
        W:   - Installing monolog/monolog (1.24.0): Loading from cache
        W:   - Installing magento/zendframework1 (1.14.1): Loading from cache
        W:   - Installing symfony/finder (v4.3.2): Loading from cache
        W:   - Installing symfony/polyfill-ctype (v1.11.0): Loading from cache
        W:   - Installing symfony/filesystem (v4.3.2): Loading from cache
        W:   - Installing seld/phar-utils (1.0.1): Loading from cache
        W:   - Installing seld/jsonlint (1.7.1): Loading from cache
        W:   - Installing justinrainbow/json-schema (5.2.8): Loading from cache
        W:   - Installing composer/xdebug-handler (1.3.3): Loading from cache
        W:   - Installing composer/spdx-licenses (1.5.1): Loading from cache
        W:   - Installing composer/semver (1.5.0): Loading from cache
        W:   - Installing composer/ca-bundle (1.1.4): Loading from cache
        W:   - Installing composer/composer (1.8.6): Loading from cache
        W:   - Installing colinmollenhour/credis (1.10.0): Loading from cache
        W:   - Installing colinmollenhour/php-redis-session-abstract (v1.4.1): Loading from cache
        W:   - Installing magento/framework (102.0.2): Loading from cache
        W:   - Installing magento/inventory-composer-installer (1.1.0): Loading from cache
        W:   - Installing magento/module-store (101.0.2): Loading from cache

        W:   - Installing magento/module-user (101.1.2): Loading from cache
        W:   - Installing magento/module-ui (101.1.2): Loading from cache
        W:   - Installing magento/module-config (101.1.2): Loading from cache

        W:   - Installing magento/module-backend (101.0.2): Loading from cache
        W:   - Installing magento/module-variable (100.3.2): Loading from cache
        W:   - Installing magento/module-theme (101.0.2): Loading from cache
        W:   - Installing magento/module-widget (101.1.2): Loading from cache


        W:   - Installing magento/module-media-storage (100.3.2): Loading from cache
        W:   - Installing magento/module-cms (103.0.2): Loading from cache
        W:   - Installing magento/module-email (101.0.2): Loading from cache
        W:   - Installing magento/module-wishlist (101.1.2): Loading from cache
        W:   - Installing magento/module-tax (100.3.2): Loading from cache
        W:   - Installing magento/module-sales (102.0.2): Loading from cache
        W:   - Installing magento/module-shipping (100.3.2): Loading from cache
        W:   - Installing magento/module-sales-sequence (100.3.2): Loading from cache
        W:   - Installing magento/module-quote (101.1.2): Loading from cache
        W:   - Installing magento/module-directory (100.3.2): Loading from cache
        W:   - Installing magento/module-catalog (103.0.2): Loading from cache
        W:   - Installing magento/module-eav (102.0.2): Loading from cache
        W:   - Installing magento/module-rule (100.3.2): Loading from cache
        W:   - Installing magento/module-sales-rule (101.1.2): Loading from cache
        W:   - Installing magento/module-require-js (100.3.2): Loading from cache
        W:   - Installing magento/module-review (100.3.2): Loading from cache
        W:   - Installing magento/module-page-cache (100.3.2): Loading from cache
        W:   - Installing magento/module-newsletter (100.3.2): Loading from cache
        W:   - Installing magento/module-security (100.3.2): Loading from cache
        W:   - Installing magento/module-customer (102.0.2): Loading from cache
        W:   - Installing magento/module-authorization (100.3.2): Loading from cache
        W:   - Installing magento/module-integration (100.3.2): Loading from cache
        W:   - Installing magento/module-checkout (100.3.2): Loading from cache
        W:   - Installing magento/module-gift-message (100.3.2): Loading from cache
        W:   - Installing magento/module-catalog-inventory (100.3.2): Loading from cache
        W:   - Installing magento/module-downloadable (100.3.2): Loading from cache
        W:   - Installing magento/module-reports (100.3.2): Loading from cache
        W:   - Installing magento/module-payment (100.3.2): Loading from cache
        W:   - Installing magento/module-catalog-rule (101.1.2): Loading from cache
        W:   - Installing zendframework/zend-session (2.8.5): Loading from cache
        W:   - Installing zendframework/zend-db (2.10.0): Loading from cache
        W:   - Installing zendframework/zend-captcha (2.8.0): Loading from cache
        W:   - Installing magento/module-captcha (100.3.2): Loading from cache
        W:   - Installing magento/module-msrp (100.3.2): Loading from cache
        W:   - Installing magento/module-contact (100.3.2): Loading from cache
        W:   - Installing magento/module-bundle (100.3.2): Loading from cache
        W:   - Installing magento/module-rss (100.3.2): Loading from cache
        W:   - Installing magento/module-url-rewrite (101.1.2): Loading from cache
        W:   - Installing magento/module-cms-url-rewrite (100.3.2): Loading from cache
        W:   - Installing magento/module-import-export (100.3.2): Loading from cache
        W:   - Installing magento/module-catalog-url-rewrite (100.3.2): Loading from cache
        W:   - Installing magento/module-catalog-import-export (101.0.2): Loading from cache
        W:   - Installing magento/module-product-alert (100.3.2): Loading from cache
        W:   - Installing magento/module-indexer (100.3.2): Loading from cache
        W:   - Installing magento/framework-bulk (100.3.2): Loading from cache
        W:   - Installing magento/module-asynchronous-operations (100.3.2): Loading from cache
        W:   - Installing magento/module-deploy (100.3.2): Loading from cache
        W:   - Installing magento/module-cron (100.3.2): Loading from cache
        W:   - Installing magento/module-developer (100.3.2): Loading from cache
        W:   - Installing magento/module-translation (100.3.2): Loading from cache
        W:   - Installing magento/module-backup (100.3.2): Loading from cache
        W:   - Installing magento/module-vault (101.1.2): Loading from cache
        W:   - Installing magento/module-instant-purchase (100.3.2): Loading from cache
        W:   - Installing magento/module-paypal (100.3.2): Loading from cache
        W:   - Installing magento/module-checkout-agreements (100.3.2): Loading from cache
        W:   - Installing amzn/amazon-pay-sdk-php (3.4.1): Loading from cache
        W:   - Installing amzn/amazon-pay-and-login-with-amazon-core-module (3.2.9): Loading from cache
        W:   - Installing amzn/login-with-amazon-module (3.2.9): Loading from cache
        W:   - Installing amzn/amazon-pay-module (3.2.9): Loading from cache
        W:   - Installing bacon/bacon-qr-code (1.0.3): Loading from cache
        W:   - Installing paragonie/constant_time_encoding (v2.2.3): Loading from cache
        W:   - Installing graylog2/gelf-php (1.6.2): Loading from cache
        W:   - Installing ralouphie/getallheaders (3.0.3): Loading from cache
        W:   - Installing guzzlehttp/psr7 (1.6.1): Loading from cache
        W:   - Installing guzzlehttp/promises (v1.3.1): Loading from cache
        W:   - Installing guzzlehttp/guzzle (6.3.3): Loading from cache
        W:   - Installing react/promise (v2.7.1): Loading from cache
        W:   - Installing guzzlehttp/streams (3.0.0): Loading from cache
        W:   - Installing guzzlehttp/ringphp (1.1.1): Loading from cache
        W:   - Installing symfony/translation-contracts (v1.1.5): Loading from cache
        W:   - Installing symfony/translation (v4.3.2): Loading from cache
        W:   - Installing nesbot/carbon (2.20.0): Loading from cache
        W:   - Installing psr/simple-cache (1.0.1): Loading from cache
        W:   - Installing illuminate/contracts (v5.8.27): Loading from cache
        W:   - Installing doctrine/inflector (v1.3.0): Loading from cache
        W:   - Installing illuminate/support (v5.8.27): Loading from cache
        W:   - Installing illuminate/config (v5.8.27): Loading from cache
        W:   - Installing illuminate/container (v5.8.27): Loading from cache
        W:   - Installing khanamiryan/qrcode-detector-decoder (1): Loading from cache
        W:   - Installing paragonie/random_compat (v9.99.99): Loading from cache
        W:   - Installing ramsey/uuid (3.8.0): Loading from cache
        W:   - Installing klarna/module-core (5.1.0): Loading from cache
        W:   - Installing klarna/module-ordermanagement (5.0.3): Loading from cache
        W:   - Installing klarna/module-kp (6.1.1): Loading from cache
        W:   - Installing magento/language-de_de (100.3.2): Loading from cache
        W:   - Installing magento/language-en_us (100.3.2): Loading from cache
        W:   - Installing magento/language-es_es (100.3.2): Loading from cache
        W:   - Installing magento/language-fr_fr (100.3.2): Loading from cache
        W:   - Installing magento/language-nl_nl (100.3.2): Loading from cache
        W:   - Installing magento/language-pt_br (100.3.2): Loading from cache
        W:   - Installing magento/language-zh_hans_cn (100.3.2): Loading from cache
        W:   - Installing magento/magento-cloud-components (1.0.0): Downloading (100%)
        W:                                                                                                                                                                                   

        W:   [UnexpectedValueException]                                                                                                                                                      
        W:   The checksum verification of the file failed (downloaded from https://repo.magento.com/archives/magento/magento-cloud-components/magento-magento-cloud-components-1.0.0.0.zip)  
        W:                                                                                                                                                                                   
        W: 
        W: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
        W: 




      
      E: Error building project: `composer` could not be run.

    E: Error: Unable to build application, aborting.


Branch magento_downgrade set up to track remote branch magento_downgrade from origin.
To git.us-3.magento.cloud:6le7yxm6zbcym.git
   b2bc588..6bcd37a  magento_downgrade -> magento_downgrade
updating local tracking ref 'refs/remotes/origin/magento_downgrade'


Completed successfully.

Currently, any change of the .magento.app.yaml file leads to this failure.

I have fixed it by removing composer.lock locally and then pushing the change to Git