.htaccess error on local site in docksal
There is a directory in the root of the Acquia project, config/default.So, all you need it's make it writable.

or you can  change $config_directories['vcs'] and $config_directories['sync'] in your settings.php to somewhere which will be writable .