Why is an ESP32 web server limited to a certain number of Base64 images?

When you do this you dynamically instantiate a string on the heap. Have you try having those as global constant ?