How to add a larger custom partition?

Yes, I use 950GiB since you said it has 953.9GB in original post.
You can just configure it as following:

-    <device type="external" instance="0" sector_size="512" num_sectors="1992294400" >
+    <device type="external" instance="0" sector_size="512" num_sectors="EXT_NUM_SECTORS" >

And specify the sectors number in the flash command with -T parameter like the following:

$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --showlogs --external-device nvme0n1p1 -p "-T 1992294400" -c ./tools/kernel_flash/flash_l4t_t234_nvme.xml --external-only --append --network usb0 jetson-orin-nano-devkit external

In this way, you can specify the correct sector number in flash command based on the NVMe SSD you are using.