Booting HAOS from SSD hangs on Raspberry Pi 400

I’ve installed the firmware to enable booting from SSD. After that I installed HAOS on the SSD. To boot successfully I have to remove the SSD, reboot, wait a while and then reinsert the SSD otherwise the Pi seems to hang during boot.