We are using nRF52 SDK 17.0.2 s132_nrf52_7.2.0_softdevice.hex in our application. When entering in DFU mode from application, we perform nrf_power_gpregret_set(BOOTLOADER_DFU_START) instruction and app_error_fault_handler exception generated with 0x1001 error code means Incorrect interrupt configuration (can be caused by using illegal priority levels, or having enabled SoftDevice interrupts). So now we have used sd_power_gpregret_set(0, BOOTLOADER_DFU_START) instruction to enter in DFU mode and it executed successfully but in bootloader mode if we kill DFU process in mobile app before completion, device get stuck in bootloader mode and never come out from it.
references: