Not to be trite, but is your machine actually out of memory? PyCharm / JetBrains' IDE is a memory hog. Running on my (Linux) machine right now, just the main process is occupying >6GB of RAM, and 25GB of vmem.
Apple Silicon Macs default to quite low amounts of memory - usually 8GB. If you didn't spring for at least another 8GB, I would not find it surprising for PyCharm to not be able to run correctly on that machine.
#mem #PyCharm #JetBrains #IDE #java #vmem #rss