Hello TienTran,
Have you been using the CSEc engine?
Was the MCU partitioned for CSEc at the time the MCU got secured?
Please refer to AN12130 Production Flash Programming Best Practices for S32K1xxMCUs
Section 3.2.5.2 Mass erase and CSEc considerations
https://www.nxp.com/docs/en/application-note/AN12130.pdf
Thank you,
BR, Daniel