The out of memory error occurs because of the excessive field Metadata. To overcome this issue, right click on REST SOURCE and select Advance Editor to remove the External columns and Output columns that you don't need. If there is a child Output you want to use, then you need to keep the parent (not remove the parent).