Hmm did you tried to install Sonarr a different way before? Or did you copied the configuration from somewhere? Because we don’t do anything on that configuration file during installation, and yours looks different than expected. Beside the port, your branch is incorrect as well
<Branch>master</Branch>
But it should be
<Branch>main</Branch>

A master branch did not exist on the official Sonarr repository.