Something is calling esp_get_free_heap_size() in its global constructor and helping itself to 25% of the available heap.
Something is corrupting memory in a freakish way which causes the heap implementation to lose 1MB of space
esp_get_free_heap_size() is used in one place only, to log available heap
the number 1280kb is used in partitions table, but I already changed this to other values, that didn't change anything
The freakish way, yes, thats something, hmmmm, no idea how to find this.