There is an experimental flag[0] in the .wslconfig which let's you set autoMemoryReclaim to gradual or dropcache. On my laptop I had good success with dropcache and on my countryside desktop with gradual.
[0] https://learn.microsoft.com/en-us/windows/wsl/wsl-config#exp...