I've had the same problem with an arduino-genuino 101. Later, I've connected my new M1 to an arduino mega. Same problem. But I've bought a cable Usb B to C. Now the IDE is able to debug the sketches without error. But when loading to the board two things: a. A message error appears, but, b. the program works. It's hard to me to understand this but the question is that the program runs indenpendtly of the error ????