ESP32 - moved to 16MB version, added default 16MB partition in PIO.INI program crashes

I’ve cloned my project to start using a 16MB ESP32 WROOM instead of the 4MB.
If I compile and flash using the default partition table the 16MB module works fine ( as per 4MB module).
If I add the default 8MB or default 16MB table then the program crashes.

What should I be looking for?
This is the Error ( repeating continuously)

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
entry 0x400805e4
ets Jul 29 2019 12:21:46

This is the PIO.INI.
The ONLY difference between a working project is the board_build_partitions line being included or not included.
The new module DOES have 16MB as I’ve checked the memory using (ESP.getFlashChipSize());
as well as the module marking.

platform = espressif32
board = esp-wrover-kit
board_build.partitions = default_8MB.csv
framework = arduino
lib_deps = 
	sparkfun/SparkFun AS3935 Lightning Detector Arduino Library@^1.4.3
	adafruit/Adafruit SSD1306@^2.5.7
	r89m/r89m PushButton@^1.0.1
	adafruit/Adafruit GC9A01A@^1.1.0
monitor_speed = 115200
upload_port = COM13
monitor_port = COM13

I have the same issue while using custom board config for esp-wrover-e 16mb Flash

        "build": {
                "arduino": {
                        "ldscript": "esp32_out.ld"
                "core": "esp32",
                "extra_flags": "-DARDUINO_ESP32_DEV",
                "f_cpu": "240000000L",
                "f_flash": "40000000L",
                "flash_mode": "dio",
                "mcu": "esp32",
                "variant": "esp32",
                "partitions": "partition.csv"
        "connectivity": [
        "debug": {
                "openocd_board": "esp-wroom-32.cfg"
        "frameworks": [
        "name": "Espressif ESP32-WROVER-E Module",
        "upload": {
                "flash_size": "16MB",
                "maximum_size": 16777216,
                "maximum_ram_size": 327680,
                "require_upload_port": true,
                "speed": 460800
        "url": "",
        "vendor": "Espressif"


platform = espressif32@3.4.0
board = esp32_wrover_e
framework = arduino
monitor_speed = 115200
board_upload.filesystem = spiffs
extra_scripts =
debug_tool = esp-prog
monitor_port = /dev/cu.usbserial-54790243931
upload_protocol = esp-prog
debug_init_break = tbreak setup

and using this partition

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x640000,
app1,     app,  ota_1,   0x650000,0x640000,
spiffs,   data, spiffs,  0xc90000,0x360000,
coredump, data, coredump,0xFF0000,0x10000,

Please correct me if I’m wrong here, but I seem to recall that the ESP32 has a 4MB memory window limit.

Try reducing the app partitions from 6.25MB to 4MB and see if the error still occurs.