Hi Brendan,
Please check [Erase Flash Sector Command] info with K22 reference manual:

The ACCERR with below condition, please check if the provided Flash address is no phrase aligned (flash_address[2:0] = 000).

And could you check with MCUXpresso SDK for TWR-K22F120M [flash] demo, which located with below path:
..\SDK_2.2_TWR-K22F120M\boards\twrk22f120m\driver_examples\flash\pflash\iar
If that demo also with same issue on your site? Thanks.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------