Burn bootloader on nano 33 BLE with another arduino

Do you get the error connecting DP/cannot read IDR when you don't have a good connection to the board, or do you get some other error?

There are several different flavors of error I get, but the "error connecting DP/cannot read IDR" one you encountered is one of them.