Maybe this helps:
sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess
[SOLVED] Error: "Some files have not passed the integrity check". INVALID_HASH
Maybe this helps:
sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess
[SOLVED] Error: "Some files have not passed the integrity check". INVALID_HASH