I have been getting weird NVME errors while boot and I thought to try updating to latest kernel and see if it’s resolved.

sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison

cd linux

cp -v /boot/config-$(uname -r) .config
make oldconfig # Keep saying yes

# To work around compilation errors on ubunutu-based distro
#make[1]: *** No rule to make target 'debian/certs/debian-uefi-certs.pem', needed by 'certs/x509_certificate_list'.  Stop.

scripts/config --disable SYSTEM_TRUSTED_KEYS
scripts/config --disable SYSTEM_REVOCATION_KEYS

make -j4

# Install kernel and modules
sudo make install
sudo make modules_install

# Update Grub
sudo update-initramfs -c -k 6.12.6
sudo update-grub