Could you share your project with us? that way we can help you investigate on what is causing this issue. If your project is confidential you can create a new demo project where we can reproduce the issue.

First, you can try to use the MBED firmware to program the Board and check if the issue is persistent with the MBED firmware. When this firmware is used the CMSIS DAP option should be selected in the KDS debugger.