pandas Memory Error on windows CMD but not on Ubuntu WSL

Same code, same files (.py files and sqlite database). But with Windows CMD, I get a MemoryError, whereas with Ubuntu WSL, I can read the dataframe with no problems.

I have 48GB RAM, 64-bit Windows (confirmed in Windows system info) so I'm sure there should be no issue. Why is it that I can run this thing on Ubuntu WSL but not on the Windows Command Prompt?