ESP8266: Upload fails, but now only with rtos-sdk framework

Board: ESP8266 ESP-01
Programmer: USB to ESP8266, CH340C

OS: Manjaro, kernel 5.16.7
PlatformIO Core: 5.2.5
Framework: esp8266-rtos-sdk

Here is the platformio.ini:

[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = esp8266-rtos-sdk
monitor_speed = 74880
upload_resetmethod = nodemcu

I can now successfully upload when I am using the arduino and the esp8266-nonos-sdk but with the esp8266-rtos-sdk framework the upload fails at this stage:

----
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 244688 bytes to 179583...
Writing at 0x00020000... (9 %)
----
Writing at 0x00040000... (81 %)
Writing at 0x00044000... (90 %)
Writing at 0x00048000... (100 %)
Wrote 244688 bytes (179583 compressed) at 0x00020000 in 22.6 seconds (effective 86.6 kbit/s)...

A fatal error occurred: Timed out waiting for packet header
*** [upload] Error 2
================================== [FAILED] Took 27.69 seconds ==================================
The terminal process "platformio 'run', '--target', 'upload', '--environment', 'esp01_1m'" terminated with exit code: 1.

This is a similar error I got before with the wrong reset method, but I don’t think this shouldn’t be reset method or flash modes since it’s the same hardware and bootloader involved, but I’ve tried different combinations just to be safe? Can anybody think of a reason that this would fail while the other two frameworks do not?

Thanks for any help.