flash/nor/nrf5: improve handling of nRF52 flash errors