I executed sudo pacman -Syy and then repeated the above command. This time the install has gone ahead without issues.
sudo pacman -Syy