Strange issue preventing binary data mode set to filesystem which leads to „memeory issues“

That option may not work if you don’t have an enterprise plan license. But better to ask someone from the n8n team ( @Jon or @bartv fyi)

The code node is very heavy (it basically doubles the data it has to process). Have you checked the option to receive the output as a file directly?