Platformio Unable to compile or upload for esp01 esp8266

I have been having difficulty compiling or uploading code for esp01 module, I keep getting this error
Screenshot 2024-07-10 at 02.34.49

Please help

The message means, your sketch is too big and will not fit into the flash.

There are two versions of the ESP01: 512kB / 1M Flash.

Which module do you have and what is the content of your platformio.ini?

Please post file content and error messages as code blocks instead of screenshots!
See How to post logs and code in PlatformIO Community Forum