Hi @fastinger_sepp_123. Please try this experiment and then report back here with the results:
This procedure is not intended to solve the problem. The purpose is to gather more information.
Select File > Examples > 01.Basics > BareMinimum from the Arduino IDE menus.
The "BareMinimum" example sketch will open in a new Arduino IDE window.
Upload the "BareMinimum" sketch to your ESP8266 board, as usual.
Please add a reply here on this forum thread to tell us whether the problem of the appearance of the exception in the Arduino IDE Serial Monitor still occurs when the ESP8266 is running this "BareMinimum" sketch.
ⓘ In this experiment, the "BareMinimum" sketch is serving as a "known good" sketch that doesn't contain any code that might produce an exception. If the problem occurs when your real sketch is running on the board, but doesn't occur when "BareMinimum" is running on it, then we will know for certain that the problem is caused by something in the real sketch's code and we can focus our attention exclusively on identifying the problematic code.
It seems like the original ESP is actually faulty.
And yeah it prints the error the whole time. From start until i disconnect the ESP.
I tried another one, and it works perfectly. I can upload the code without any issues.