Ok. Memory, you mean video card memory? I see full-size textures take 257 MB, and I have GeForce GTX 960M (according to the web it has 4GB vram).
I checked what apt has installed today, and it was NVIDIA 470 driver. I upgraded to unstable 495, it crashed too, and downgraded to 460 -- it worked. But after re-upgrading to 470, the crash didn't happen as earlier.
I guess, there must have been a memory leak. I'll be watching the card's vram to see if that might be the cause.