Host blocks IP address when using nextcloud file synchronisation

Hosting Service for Nextcloud sometimes blocks my IP address when using file synchronisation.
Information from hosting service is as follows:

Here is the modsec result being generated by nextcloud which keeps forcing our firewall to block your IP address.

BAD useragent string
Request: GET /nextcloud/apps/files/img/app.svg
Action Description: Access denied with code 403 (phase 2).
Justification: Pattern match “^Mozilla/5.0$” at REQUEST_HEADERS:User-Agent.

Would appreciate advice please.

If your ModSecurity module blocks the used user agent string, make sure that the used one is whitelisted in its configuration as described here: