The error relates to content of the db files. The error happens when pacman receives markup from the mirror instead of the database archives.