nvme -id-ns -H /dev/nvme0n1 | less
The LBA format in use or available will be displayed at the bottom.
For compatibility, manufacturers usually factory set SSDs to 512n/512e format and must manually switch to 4Kn format, at least today’s non-enterprise SSDs mostly do this.
As I understand it, this has to do with the manufacturer’s preset security protection. Waking up the specific sleep state allows the nvme-cli tool to briefly gain permission to change the LBA format.
Attached are some of the things I saw when I first encountered this problem:
https://github.com/linux-nvme/nvme-cli/issues/816
https://community.wd.com/t/sn750-cannot-format-using-the-nvme-command/254374/8