Error in port monitor in Arduino IDE 2.1.1

I see the relative part of the logs here:

Unfortunately it doesn't give me any clue about the cause of the error. I didn't find any other reports of this "Port monitor error: EOF" error.

I see you are using a very outdated version of Arduino IDE. Is there a specific reason you are using version 2.1.1 instead of the latest version 2.3.2? If not, please update to 2.3.2 and check if the problem still occurs. Although I don't have any specific reason to think the problem is caused by the version of Arduino IDE you are using, there have been many bug fixes and enhancements to Arduino IDE since 2.1.1 and it is possible that one of them might have resolved the problem you are experiencing.


I notice that in the screenshot you shared in post #1, the error message is for the COM13 port, but in the logs it is COM5:

Do you have an explanation for that? Do you have a board on COM5 and another on COM13? I don't have any specific reason to think this is related to the problem, but I am grasping at straws since I don't have an idea of the cause.