I had the same phenomen when trying to upload to an ESP32 Node-MCU
Upload was not possible
I veryfied that COM-Port 5 is available with IDE 1.8.19 works very fine
So I terminated IDE 1.8.19 and started IDE 2.0.2 new and then upload was not possible
It is very clumsy to collect screenshots of what do I know what might be important.
Does the new IDE 2.0 have some kind of
activate verbose debug-output logging into a file
that tells evevything but the sourcecode into a single textfile?