Hi, Google offers countless threads related to "ZSTD-compressed data is corrupt". Maybe one of those threads is helpful.
I can't help with this. While it might not be helpful in your case, it doesn't harm to build in a clean chroot. https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Setting_up_a_chroot https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Building_in_the_chroot Regards, Ralf