In my case I was able to successful install Ubuntu 24.04 by putting NVME disk inside of PC (as M2) and then putting it into external enclosure with USB4 interface. Unfortunately, it hung during boot and I had to apply following changes found here.
Open grub configuration:
sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX="thunderbolt.host_reset=0"
sudo update-grub
After that it will work just fine.