ESP32-WROVER-B (LILYGO T-ETH-Lite) internal temparature values

I currently working on a project with LILYGO T-ETH-Lite, quite a nice small PCB with ESP32-WROVER-B and PoE. Everything works well, except the chip gets quite hot for some time. I tried to use the Internal Temperature component and found something weird.

If I compile firmware for the framework type arduino, I get only one invalid value - 53.3’C. NAN is reported to the Home Assistant, it useless.

If I switch to esp-idf framework, I get something like 61-63’C, which looks correct. But as soon I reboot the node with esp-idf setting, it loads an older version of firmware, built with arduino setting. And no temp reported again.

I don’t know why, but both manual reboot or using the restart button component has this exact same effect.

Anybody can help me with this?