A valid ESP32 sketch would uplaod without error about the beginning of the year - Now giving error codes

hello,

if your sketch once compiled well there basicly is no problem with the sketch. The problem is your PC or the installed SW components related to the IDE. Now what you can check or remember:

did you change your PC ?

did you upgrade or reinstall the Arduino IDE ?

did you remove or relocate libraries ?

did you upgrade the Boardplatform (Boards Manager) ?

did you select the right processor board before compiling ?

What I see in the first line of the error messages there is just missing a file somewhere inside of the IDE relevant directory.