Give my own ideas based on your answers to others, without reference to GPT, because you say your.img file is itself an ndif file. You need to convert it to raw before you can format it. There are third-party tools you can use to convert ndif to raw, such as the hdiutil tool. The formatting step is to open Disk Management.
Locate the disk where your pending raw file resides and right-click on that disk.
Select the Offline(Offline) option.
Then right-click the Disk again and select "Convert to GPT Disk".
Finally, right-click the disk and select the "New Simple Volume" option.
Follow the wizard instructions to complete the process of creating a new volume and format it to your desired file system, such as exFAT or FAT.
If your pending raw file is not recognized as a disk, you can try using some third-party tool to convert it to readable mode. For example, you can use the ImDisk utility to mount a raw file as a virtual disk, and then use disk Manager to format it to your desired file system.