Error connection timeout?

If you’re using too much memory then the first thing to do is identify what’s using it up. You can do this by disabling one part of you project at a time, like commands or plugins, and look how ram usage changes (keeping in mind it might take up to 2 minutes for the monitor to update). Follow this rule until you identified the lines of code that take up all that ram.