ESP32 millis() overflows break the loop

The maximum value of millis should be the max uint32 value, which is 4'294'967'295 ms. That would take 49.7 days for this issue to happen. Dou you know why on ESP32 it overflows on 4294967 ms?