On Windows the swap file is usually C:\pagefile.sys, and the size is configurable (even to zero if needed).
I always set it to something like 4GB min/max for nostalgia, I don’t even know if it matters any longer, but that’s what I do on my friends’ computers when they ask me to clean it up a bit; glad I exited windows years ago though.