Initramfs unpacking failed: invalid magic as start of compressed

If you can’t boot into either the kernels you can only fall back to an install media of Manjaro and then chroot into it. As @Zesko already mentioned you may want to reinstall the kernel and pay attention to the output. Maybe try also to install linux510. Reinstalling grub might not been needed.