Apache header-settings for nextcloud virtual-host

Nextcloud sets header entries like: X-Xss-Protection, X-Frame-Options, X-Content-Type-Options and so on …

Should they be emptied by Nextcloud before they collide with global web server settings?

e.g. by:

     Header always unset X-Xss-Protection
     Header always unset X-frame options
     Header always unset X-Content-Type-Options

If I do not do this in the Apache Virtual Host configuration of my Nextcloud server, I get error messages on the Security & Setup Alerts because the header entries are duplicated.

In my global web server configuration, the entries for all virtual hosts are pre-set globally:

     Header set X-Xss-Protection "1; mode = block"
     Header set X-Frame-Options "SAMEORIGIN"
     Header set X-Content-Type-Options "nosniff"
     Header set referrer policy "same-origin"
     Header unset X-Powered-By