jsmack
I think more likely is the remesh node is being used with an unrealistic target size. Terrain meshes are often quite large in space, so the default resolution of 0.1 or 0.2 is generating too many divisions, more than will fit in memory with only 32GB. Try increasing the target size to at least 1, but try 2 or 4 and see if it still runs out of memory.
Thanks a lot. Before starting, I set 1. Parameter 3 helped a lot. But further work is still going slowly. The guys gave more advice. I follow them too.