ESP32 Project (Arduino) No Longer Compiles - sdkconfig

I have a long term project that I have been working on in PlatformIO that recently stopped compiling.

I am now getting several instances of the following error in the terminal:

.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/lwip/port/esp32/include/lwipopts.h:405:2: error: #error "One of CONFIG_TCP_OVERSIZE_xxx options should be set by sdkconfig"

It also gives this error several times:

.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:95:2: error: 'esp_eth_handle_t' does not name a type; did you mean 'esp_event_handler_t'? 

The last time it worked was about a week ago, since then I have updated the ESP 32 platform. I have searched around and have not found anyone else having this issue, so not sure if the update was the cause.

I have also been searching through the documentation but so far have not found anything relevant.

Any ideas on what may have caused this to break? Build info below:

PLATFORM: Espressif 32 (6.3.2+sha.26aa55a) > Node32s
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)  
 - framework-arduinoespressif32 @ 3.20009.0 (2.0.9)
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft

FYI if anyone else runs into this issue, I was able to get the project to compile again by doing the following:
In sdkconfig.h - add “#define CONFIG_LWIP_TCP_OVERSIZE_MSS 1”
In WifiGeneric.h - change type ‘esp_eth_handle_t’ to ‘esp_event_handler_t’ as mentioned in the error

I’m still not sure what caused this to break, seems like one of the header files is out of date in the ESP32 platform. Not sure if it will break again in the next update but it is working now.

I am kind of surprised that worked because i thought the sdkconfig.h is auto generated and not editable by the user. Using the idf you can get into menuconfig and change things in from there which will update the sdkconfig.h file.

I was surprised it worked as well. Everything I found while searching said sdkconfig.h was an auto generated file.

This project is on the Arduino framework and not IDF. Not sure I have access to those menus?