Need help to run c++ code on ESP32-DEVKITC-VE - ESP32-WROVER board -- 4

Job ID: 30720707

Budget: ₹600 – ₹3,000 INR

I have devkit - https://www.evelta.com/esp32-devkitc-ve-esp32-wrover-e-8mb-flash-8mb-psram-development-board-pcb-antenna/?gclid=Cj0KCQjwmIuDBhDXARIsAFITC_6GQVxTa_VQJTa_rlnnQfwIDLDI525Z8TjFs12Xfg3PpuPjD5_dwcsaAlbkEALw_wcB

I have one program which reads csv file and perform some processing on this csv data. Code runs fine and gives expected results.

But when Code size increases, it gives an error in compilation.

Partitions defined in '/Users/karim/Documents/venturit/projects/ESP-32/afibmodel_2000/partitions.csv' occupy 6.1MB of flash (6356992 bytes) which does not fit in configured flash size 4MB. Change the flash size in menuconfig under the 'Serial Flasher Config' menu.
[106/137] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

After that I tried to change the flash size by updating the "sdkconfig" file and made it - "CONFIG_ESPTOOLPY_FLASHSIZE="8MB"

So now it gives different error

/var/folders/sc/2rv_t51115d2c6tn41s_7phc0000gn/T//ccA8TWEJ.s: Assembler messages:
/var/folders/sc/2rv_t51115d2c6tn41s_7phc0000gn/T//ccA8TWEJ.s:120592: Error: operand 2 of 'l32r' has out of range value '4294703316'
/var/folders/sc/2rv_t51115d2c6tn41s_7phc0000gn/T//ccA8TWEJ.s:120918: Error: operand 2 of 'l32r' has out of range value '4294703788'
/var/folders/sc/2rv_t51115d2c6tn41s_7phc0000gn/T//ccA8TWEJ.s:121252: Error: operand 2 of 'l32r' has out of range value '4294703432'
/var/folders/sc/2rv_t51115d2c6tn41s_7phc0000gn/T//ccA8TWEJ.s:121453: Error: operand 2 of 'l32r' has out of range value '4294704748'

LEt me know if you can help me to solve this

You must be having esp-32 board and ready to take screen sharing session to run the solution on my machine.