I’d say, return to the chroot environment, and reinstall zlib, but overwrite any conflicts. That way, if there is something wrong with the file, they’ll be replaced.
chroot
pamac reinstall zlib --overwite="/usr/lib/*,/usr/lib32/*"