Вот объяснение:
https://github.com/espressif/arduino-esp32/issues/11163#issuecomment-3069388509
Возможное решение здесь: