It seems like something in the way you (or one of your dependencies) use java causes it to over time leak file handles, which in turn makes windows expand the virtual memory page table and eat all available RAM...
Please see these two comments on this issue for more details:
microsoft/vscode#50280 (comment)
microsoft/vscode#50280 (comment)