You can only change your paging file, which is the memory that is swapped to the hard drive when your memory is full. The paging file is located in a file on the hard drive. This file is normally managed by windows and this does not seem to work properly in cooperation with metashape.
I can only show you the German terms that I translated with Google, but you should find that.
1) Windows Search: Advanced System Settings
2) Advanced tab
3) Tab performance
4) virtual memory change
5) choose a drive (preferably SSD) and set the initial size to 1.5 x your RAM, for me 64GB * 1.5 = 96 GB. Then you set the max size to a value that is sufficient for you, 200GB is enough for me.
So you have a total memory of: RAM + Paging File, for me 64GB+200GB=264 GB.
I've never needed more than 230 GB.
You can check this in the Task Manager under the Performance tab.
There you will see your memory "in use" and "committed"
In use means: This is how much memory you use from your RAM
Comitted describes the RAM and the paging file:
XX Ram is in use at the moment / XX Ram will be deployed at the moment
Just observe, that's actually self-explanatory.
I use windows 11, not much should change with windows 10.
Dieter