Math.max(...array) throws a RangeError once the array gets big
Spreading an array into a function call passes every element as a separate argument. Past roughly 125,000 elements Node 26 throws 'Maximum call stack size exceeded', which breaks Math.max, push(...items) and String.fromCharCode-based base64.