SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY was always enabled on S2 and S3, but this option is not compatible with ESP_COREDUMP_ENABLE_TO_FLASH. Make it configurable to allow users to deactive it so that ESP_COREDUMP_ENABLE_TO_FLASH can be used.