Ask the manufacturer, or more realistically use esptool.
I switched from android framework to idf and wifi came up. I’m using TTGO with ESP32-D0WDQ6.
esp32:
board: esp32dev
framework:
sdkconfig_options:
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"
type: esp-idf
ESPHome sadly uses a Java based stack for both BT and BLE, it needs a lot of memory to function. If you need BLE then there are alternatives like Nimble but ESPHome does not support it yet, there is a issue on GitHub but sadly no activity Use the nimble stack instead of current bluetooth stack · Issue #810 · esphome/feature-requests · GitHub