Nspanel crash when download anything

after numerous attempts I tried to upload a simple test to the nspanel but the result is always the same:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6380
ho 0 tail 12 room 4
load:0x40078000,len:15916
load:0x40080400,len:3860
entry 0x40080630
I (29) boot: ESP-IDF 5.5.1 2nd stage bootloader
I (29) boot: compile time Dec 23 2025 14:55:31
I (29) boot: Multicore bootloader
I (31) boot: chip revision: v3.1
I (33) boot.esp32: SPI Speed : 40MHz
I (37) boot.esp32: SPI Mode : DIO
I (41) boot.esp32: SPI Flash Size : 4MB
I (44) boot: Enabling RNG early entropy source…
I (49) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 otadata OTA data 01 00 00009000 00002000
I (64) boot: 1 phy_init RF data 01 01 0000b000 00001000
I (71) boot: 2 app0 OTA app 00 10 00010000 001c0000
I (77) boot: 3 app1 OTA app 00 11 001d0000 001c0000
I (84) boot: 4 nvs WiFi data 01 02 00390000 0006d000
I (90) boot: End of partition table
I (94) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=225e0h (140768) map
I (149) esp_image: segment 1: paddr=00032608 vaddr=3ffb0000 size=03df8h ( 15864) load
I (155) esp_image: segment 2: paddr=00036408 vaddr=40080000 size=09c10h ( 39952) load
I (171) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=a02ach (656044) map
I (395) esp_image: segment 4: paddr=000e02d4 vaddr=40089c10 size=0a8c4h ( 43204) load
I (412) esp_image: segment 5: paddr=000eaba0 vaddr=50000000 size=00020h ( 32) load
I (423) boot: Loaded app from partition at offset 0x10000
I (423) boot: Disabling RNG early entropy source…
[1B][0;32m[I][logger:121]: Log initialized[1B][0m
[1B][0;35m[C][safe_mode:084]: Unsuccessful boot attempts: 4[1B][0m
[1B][0;36m[D][esp32.preferences:149]: Writing 1 items: 0 cached, 1 written, 0 failed[1B][0m
[1B][0;32m[I][app:077]: Running through setup()[1B][0m
[1B][0;35m[C][component:208]: Setup preferences took 1ms[1B][0m
[1B][0;35m[C][component:208]: Setup web_server_base took 0ms[1B][0m
[1B][0;35m[C][component:208]: Setup captive_portal took 0ms[1B][0m
[1B][0;35m[C][wifi:372]: Starting
Local MAC: E4:65:B8:48:9D:E4[1B][0m
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6380
ho 0 tail 12 room 4
load:0x40078000,len:15916
load:0x40080400,len:3860

this is the source code:

esphome:
  name: test
  friendly_name: test

esp32:
  board: esp32dev
  framework:
    type: esp-idf
# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "sGnsBkvwPwEIX94zM4UL6DpzJHYbykaltG+Y5jPpKlE="

ota:
  - platform: esphome
    password: "f8c13c058caa0d504cfd165456ac39cc"

wifi:
  ssid: !secret wifi_ssid1
  password: !secret wifi_password1

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test Fallback Hotspot"
    password: "blaSvzw57sUL"

captive_portal:
    

esphome version:2025.12.1

Thanks to anyone who wants to help me.