Yes, that is what I expected, I just needed to be sure that there wasn't an additional error caused by your manual edits to the environment, make sense? As I mentioned above, this is important for diagnosis, it was not intended as a fix for your problem (this is an important distinction to make for any future readers of this thread).
Sounds to me like maybe you didn't have enough memory allocated in WSL, I'll leave it to @Stefan to follow up with his thoughts.