Memory issue while loading relationships - Can't allocate 512 bytes due to exceeding memory limit

Running Neo4J Desktop on Windows 10 (v4.0.3). I was in the middle of loading ~10 million relationships and ran into this error:

Can't allocate 512 bytes due to exceeding memory limit; used=2147483648, max=2147483648

I gave enough memory in settings but can't really figure out how to resolve this.

Config settings for reference:

dbms.memory.heap.initial_size=8G
dbms.memory.heap.max_size=8G
dbms.memory.pagecache.size=3G

Thanks,

Resolved this after I used USING PERIODIC COMMIT