If the input array came from the pure BP function or const BP function, this function will be executed 2xN times during the loop. like B style in the Pic
I had a workaround for the issue but need to change the Engine content: StandardMacros, see my second attachment.
If it was a right fix, could you please integrate to the engine in the future?