Crash during os update - issues repairing using arch-chroot

Some more info on my issue following similar issue described here https://forum.endeavouros.com/t/kernel-panic-during-update-issues-with-pacman-sysroot/52530/11 :

[root@EndeavourOS /]# pacman-key --init
pacman-conf: error while loading shared libraries: /usr/lib/libarchive.so.13: file too short
mkdir: cannot create directory ‘’: No such file or directory
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
chmod: cannot access '/trustdb.gpg': No such file or directory
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
==> Generating pacman master key. This may take some time.
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
==> Updating trust database...
gpg: error while loading shared libraries: /usr/lib/libassuan.so.0: file too short
==> ERROR: Trust database could not be updated.

And when I try the following commands from the arch-chroot

wget https://arch.phinau.de/core/os/x86_64/gnupg-2.4.5-1-x86_64.pkg.tar.zst
wget https://arch.phinau.de/core/os/x86_64/gpgme-1.23.2-1-x86_64.pkg.tar.zst
./pacman-static -U ./gnupg-2.4.5-1-x86_64.pkg.tar.zst ./gpgme-1.23.2-1-x86_64.pkg.tar.zst
./pacman-static -Syu

The first pacman-static command outputs bunch of errors like below:

error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: './var/cache/pacman/pkg/btrfs-progs-6.3.2-1-x86_64.pkg.tar.zst': invalid or corrupted package (PGP signature)
warning: gnupg-2.4.5-1 is up to date -- reinstalling
warning: gpgme-1.23.2-1 is up to date -- reinstalling
error: could not open file ./usr/lib/firmware/iwlwifi-so-a0-gf-a0-81.ucode.zst: Unrecognized archive format
error: './usr/lib/firmware/iwlwifi-so-a0-gf-a0-81.ucode.zst': cannot open package file
error: could not open file ./usr/lib/firmware/sxg/saharadbgdownloadB.sys.zst: Unrecognized archive format
error: './usr/lib/firmware/sxg/saharadbgdownloadB.sys.zst': cannot open package file
error: could not open file ./usr/lib/firmware/sxg/saharadownloadB.sys.zst: Unrecognized archive format
error: './usr/lib/firmware/sxg/saharadownloadB.sys.zst': cannot open package file
error: could not open file ./usr/lib/firmware/amd/amd_sev_fam19h_model1xh.sbin.zst: Unrecognized archive format
error: './usr/lib/firmware/amd/amd_sev_fam19h_model1xh.sbin.zst': cannot open package file
...