nRF52840 DK disconnects while flashing

I am trying to complete the course "nRF Connect SDK Fundamentals" using a nRF52840 DK board (version 3.0.0) connected to a Mac Mini (Intel processor) running macOS version 10.15.7.

Everything went smoothly up until lesson 7 Exercise 2 (which is about Zephyr threads).

I can now no longer reliably flash the built program to the development board. The connection to the board is lost during flashing and also the JLINK drive disappears from the file manager after a few seconds. I then have to reboot the Mac to be able to try again. If I manage to flash a previous exercise (<= 6) to the board, everything works again. Only when I flash one of the exercise 7 programs to the board, the board gets disconnected again when flashing the next exercise.

Does anyone have an idea what's going wrong here?

Related