Hi,
You can disable NMI interrupt function via set FTFA_FOPT bit2 [NMI_DIS] value to 0b0.
The FTFA_FOPT register will load value from Flash address 0x40D during reset.
So, it need to program Flash address 0x40D with suitable value to disable NMI interrupt function.
In processor expert project, you could set 0x40D address value to disable NMI interrupt.
More detailed info, please check below picture.

Wish it helps.
B.R.
Ma Hui