You should consider disabling all interrupts.
The thing is this: typically during flash programming, the flash memory is not available/accessible by the MCU. If now an interrupt happens, the interrupt controller needs to access the vector table (usually in flash) and then jump to the vector/ISR function (usually in flash too). So you have to prevent this, and the usual way is to disable interrupts.
Now if you have the interrupt vector table & ISR code in RAM, then usually this is available and you can keep the interrupts going. Or you have the vector table plus the ISR in another flash area (different flash controller), then you should be able to continue running interrupts too.
I have used mostly the K22 (until it was not available any more), and there I have disabled all interrupts. You can see the implementation here:
https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/minIni/McuFlash.c
But you find other examples in the NXP SDK too.
I hope this helps,
Erich