Upload errors after update

I have seveal projects using ESP32 and ESP3866 boards using Wifi and ESP-NOW . They worked without problems.
Today I updated platformio as offered at startup.
Since then, upload does not work any more.
I also tried a new empty project with same resut.

log before upload begins:

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (4.0.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 @ 3.30002.0 (3.0.2) 
 - tool-esptool @ 1.413.0 (4.13) 
 - tool-esptoolpy @ 1.30000.201119 (3.0.0) 
 - tool-mklittlefs @ 1.203.210628 (2.3) 
 - tool-mkspiffs @ 1.200.0 (2.0) 
 - toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- elapsedMillis @ 1.0.6
|-- ESP8266WiFi @ 1.0
|-- Servo @ 1.0.2
|-- Ticker @ 1.0
Building in release mode
Retrieving maximum program size .pio/build/nodemcuv2/firmware.elf
Checking size .pio/build/nodemcuv2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  34.9% (used 28576 bytes from 81920 bytes)
Flash: [===       ]  26.3% (used 274713 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/cu.SLAB_USBtoUART
Uploading .pio/build/nodemcuv2/firmware.bin
esptool.py v3.0
Serial port /dev/cu.SLAB_USBtoUART

Then I get the following error on all my projects:

Traceback (most recent call last):
  File "/Users/ruediheimlicher/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 3969, in <module>
    _main()
  File "/Users/ruediheimlicher/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 3962, in _main
    main()
  File "/Users/ruediheimlicher/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 3551, in main
    esp = chip_class(each_port, initial_baud, args.trace)
  File "/Users/ruediheimlicher/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 271, in __init__
    self._port = serial.serial_for_url(port)
  File "/Users/ruediheimlicher/.platformio/penv/lib/python3.9/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/Users/ruediheimlicher/.platformio/penv/lib/python3.9/site-packages/serial/serialposix.py", line 332, in open
    self._reconfigure_port(force_update=True)
  File "/Users/ruediheimlicher/.platformio/penv/lib/python3.9/site-packages/serial/serialposix.py", line 517, in _reconfigure_port
    termios.tcsetattr(
termios.error: (22, 'Invalid argument')
*** [upload] Error 1

How can I get back to previous version?
macos 12.5
core 6.1.6
Home: 3.4.3

Example of platformio.ini:

[env:nodemcu-32s]
lib_deps = 
	enjoyneering/LiquidCrystal_I2C@^1.3.3
	thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.3.0
	adafruit/Adafruit SSD1306@^2.5.7
  adafruit/Adafruit GFX Library@^1.11.5
platform = espressif32
board = nodemcu-32s
framework = arduino
monitor_speed = 115200

The extension maybe, but the platforms are still old.

When 4.2.0 is the latest one: Releases · platformio/platform-espressif8266 · GitHub

Per Esptool does NOT like my MacBook Pro (16-inch, 2019) - #3 by tom2020 - IDE 1.x - Arduino Forum that may be a cable and USB problem.

Thanks a lot, but solution was elsewhere:
Before coming back to platformio after the update I worked on another Project with Xcode/arduino. There i specified another port for another device. Platformio and I did not recognize that.