The community database was deprecated about 2 years ago, and was removed altogether some time ago.
You need to remove it from /etc/pacman.conf
When it was deprecated you would’ve gained a pacman.conf.pacnew
with the new config, clearly you missed it.
I imagine you probably have lots of other .pacnew files hanging around. You should merge the changes.
https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave
https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave#pacdiff