I don't know how to insert the code to fix this error since I'm very new to coding lmao, although the code I used for this project was already in the examples tab of the ESP32 Camera Web Server code
thank you for your concern tbh, I'm an idiot lol, I had the wrong ssid inputted on the code that's why it took too long to connect. When I realised it it connected in just a few seconds lol. Sorry for the bother