Unable to upload/sync .htaccess files

I suggest this solution to the problem at hand:
Simply change the AccessFileName setting in Apache’s config file into some long random string of characters, and use that in place of .htaccess wherever needed within the NextCloud universe.

This allows the user to upload .htaccess files without being treated by the webserver in any special way.