Tested on ESP32-S3 compile.
I don't know if its arduino or my setup. This error has been appearing in every esp32 i've tested. And reinstalling Arduino does not help. SWSPI does not help because its extremely slow for my use case.
Update:
I have tried changing the name of the class to potentially stop other libraries to interfere with the class which did not work.