Connect / upload error on imported Arduino project baud rate 460800

I imported an arduino project. I can build it flawlessly, but uploading fails. The baudrate is set to 460800 (that worked under Arduiono.app). But uunder pio that obviously fails:

|-- Adafruit_VL53L0X @ 1.2.4
Building in release mode
Retrieving maximum program size .pio/build/denky32/firmware.elf
Checking size .pio/build/denky32/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]   7.6% (used 24920 bytes from 327680 bytes)
Flash: [==        ]  24.2% (used 317285 bytes from 1310720 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/cu.usbserial-14110
Uploading .pio/build/denky32/firmware.bin
esptool.py v4.5.1
Serial port /dev/cu.usbserial-14110
Connecting...............
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: d4:8a:fc:94:1b:32
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.

A fatal error occurred: Unable to verify flash chip connection (Serial data stream stopped: Possible serial noise or corruption.).
*** [upload] Error 2
==================================== [FAILED] Took 23.39 seconds ====================================

 *  Der Terminalprozess "platformio 'run', '--target', 'upload', '--environment', 'denky32'" wurde mit folgendem Exitcode beendet: 1. 
 *  Das Terminal wird von Aufgaben wiederverwendet, drücken Sie zum Schließen eine beliebige Taste. 

Setting monitor_speed = 115200 in platform.ini makes it worse. It doen’t even connect:


A serial exception error occurred: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
*** [upload] Error 1
===================================== [FAILED] Took 9.99 seconds =====================================

 *  Der Terminalprozess "platformio 'run', '--target', 'upload', '--environment', 'denky32'" wurde mit folgendem Exitcode beendet: 1. 
 *  Das Terminal wird von Aufgaben wiederverwendet, drücken Sie zum Schließen eine beliebige Taste. 

This setting has no effect on the upload process.

The possible causes are listed here.

Have you checked this?
Also make sure that you have selected the correct COM port (either specified in platformio.ini or selected in the bottom status bar)

Thanks. It worked after I closed the Terminal by entering a key.