Hi @Nicholas Steel ,
As far as I know there is no Microsoft solution for this, you will have to find third-party software that may be able to do this.
Here's also a similar thread which may be of interest to you:
Is it possible to limit the memory usage of a particular process on Windows
If the reply was helpful please don't forget to
accept as answer, thank you!