Hi,
Please have a look at Section 36.4.1 Flash configuration field description in the S32K1xx RM, rev.8

And the Flash Security Register (FSEC) description, Section 36.4.4.1.4.
The FSEC register is loaded from the Flash Configuration Field out of reset.
If the MCU is secure and mass erase is disabled, the MCU is bricked, unfortunately.
In S32DS, the field can be configured in startup_S32K144.S file:

Regards,
Daniel