Struggling to get nextcloud working with storage.config.yml

Hello! Since last night I have done multiple full linux reinstalls (as this is a new machine I am trying to setup). I am attempting to use Wasabi as my external cloud storage but I keep getting an Internal Server Error and here is the message I keep getting:

","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/apps\/files\/lib\/Controller\/ViewCont$

I think it must be something with my config file. Here it is:

<?php
$CONFIG = array (
  'passwordsalt' => 'hidden',
  'secret' => 'hidden',
  'trusted_domains' =>
  array (
    0 => 'localhost',
	1 => 'hidden',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '16.0.11.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'hidden',
  'installed' => true,
  'instanceid' => 'hidden',

'objectstore' => array(
        'class' => '\\OC\\Files\\ObjectStore\\S3',
        'arguments' => array(
                'bucket' => 'black-nextcloud',
                'autocreate' => true,
                'key'    => 'hidden',
                'secret' => 'hidden',
                'hostname' => 's3.eu-central-1.wasabisys.com',
                'port' => 443,
                'use_ssl' => true,
                'region' => 'eu-central-1',
                'use_path_style'=>true
            ),
),
);