Rootfs A/B nvme0n1p1 on Xavier NX EMMC failing to flash

What’s the physical size of your SSD?

You can refer to the following thread for the relation in size.
How to solve the issue that ssd are not entiely availiable after full disk encryption - #5 by KevinFFF
Maybe you should configure the following line in your partition layout file.

    <device type="external" instance="0" sector_size="512" num_sectors="NUM_SECTORS">