Sorry to hear about this experience. I hope the suggestions shared by Mylenium, Monika, and Anna helped resolve the problem. If not, kindly try closing other apps while using Illustrator, restarting your computer, or using Illustrator on a different computer and sharing your observations.
Without any info on your system we can't really tell you much. It pretty much means what it says. The 3D extrude thinks there isn't enough RAM. Why and what we can't know without any information.