Workflow Error for no reason

Does anybody have any idea why the workflow would keep crashing here:

My “Change that shit into an array” function node is working correctly (Has been for months) but sometimes out of the blue n8n keeps erroring on that specific node, It does have valid data, It simply fails to move on to the next nodes

Incase anybody wonders what the function node contains:

const newItems = [];
for (const item of items[0].json) {
  newItems.push({json: item});
return newItems;

Really simple default code

So out of the 1440 times the workflow is executed each day, It would fail ~5 times
Sometimes once, sometimes 6 times, It’s always random

These are the last few error lines in my n8n log:

0|n8n      |  7: 0xe1b84b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node /usr/bin/n8n]
0|n8n      |  8: 0xe1f54c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /usr/bin/n8n]
0|n8n      |  9: 0xde31aa v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node /usr/bin/n8n]
0|n8n      | 10: 0xddeb72 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawArray(int, v8::internal::AllocationType) [node /usr/bin/n8n]
0|n8n      | 11: 0xddec24 v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller(v8::internal::Handle<v8::internal::Map>, int, v8::internal::Handle<v8::internal::Oddball>, v8::internal::AllocationType) [node /usr/bin/n8n]
0|n8n      | 12: 0xdea25d v8::internal::Factory::NewJSArrayStorage(v8::internal::ElementsKind, int, v8::internal::ArrayStorageAllocationMode) [node /usr/bin/n8n]
0|n8n      | 13: 0xdea38e v8::internal::Factory::NewJSArray(v8::internal::ElementsKind, int, int, v8::internal::ArrayStorageAllocationMode, v8::internal::AllocationType) [node /usr/bin/n8n]
0|n8n      | 14: 0xefb5f9 v8::internal::JsonParser<unsigned char>::BuildJsonArray(v8::internal::JsonParser<unsigned char>::JsonContinuation const&, std::vector<v8::internal::Handle<v8::internal::Object>, std::allocator<v8::internal::Handle<v8::internal::Object> > > const&) [node /usr/bin/n8n]
0|n8n      | 15: 0xf01201 v8::internal::JsonParser<unsigned char>::ParseJsonValue() [node /usr/bin/n8n]
0|n8n      | 16: 0xf0204f v8::internal::JsonParser<unsigned char>::ParseJson() [node /usr/bin/n8n]
0|n8n      | 17: 0xcefb68  [node /usr/bin/n8n]
0|n8n      | 18: 0xcf0116 v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [node /usr/bin/n8n]
0|n8n      | 19: 0x14d0d79  [node /usr/bin/n8n]

Sounds like your server may run out of memory. Could that be the problem?

Hmm, It has 16GB’s and while running n8n it never goes above 60%
Utilisation is about 6.7GB out of 15.5GB