System.OutOfMemoryException

I am trying to get data from snowflake with roughly 3800000 records but I am facing this error. The column which I am trying to fetch is a variant having json type records.
Error: Exception of type ‘System.OutOfMemoryException’ was thrown.
Source: action “Import from database”, table “Imported table 1”

Is there a resolution for this? Kindly help

How much total/free memory does your computer have?