Pacman works but pamac is giving out error

Hello,

Please read the announcement

Also possible that you might need to refresh mirrors before updating (from terminal):
sudo pacman-mirrors -f5 && sudo pacman -Syyu