I had the same bug on my machine, I fixed it by appending
nouveau.modeset=0 to the grub command line
To do so, when you're in grub menu, press e to edit the command line.
nouveau.modeset=0 at the end of the line beginning with
Then press F10 to continue to boot, login into your user session, then try to reboot the computer to see if the problem is gone or if you still have the issue.
If the problem is gone, you can make the change permanent by editing the grub config.
sudo nano /etc/default/grub, append
nouveau.modeset=0 in the quotes of the
line GRUB_CMDLINE_LINUX_DEFAULT="...". Then update your grub setup with
NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [nvidia-smi:566]