I cannot take credit for finding the solution. Someone on a discord chat I found was able to help me. The fix:
1 Open a terminal:
Unlock the LUKS partition:
cryptsetup luksOpen /dev/nvme0n1p2 arch
2 Mount the BTRFS filesystem: Since BTRFS has subvolumes, you need to mount the correct subvolume:
mount -o subvol=@ /dev/mapper/arch /mnt
3 Mount the necessary virtual filesystems:
mount --types proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev
mount --make-rslave /mnt/dev
4 Bind the boot partition (if separate): If you have a separate boot partition, you need to mount it too:
mount /dev/nvme0n1p1 /mnt/boot
5 Chroot into your system:
arch-chroot /mnt
6 Fix your fstab: Ensure that your /etc/fstab file inside the chroot environment is correctly set up. You might need to generate a new one using genfstab:
genfstab -U /mnt >> /mnt/etc/fstab
7 Update GRUB: Reinstall and update GRUB to ensure it is correctly installed:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
Exit the chroot environment:
exit
Unmount all the filesystems:
bash
umount -R /mnt
cryptsetup luksClose arch
8 Reboot:
reboot