Low memory error while performing degree 2 polynomial regression on (3000*1835) sized array
You are allocating a float64 (2400, 1686366) array (very big!), no surprise you get a memory error.
You say that you have 1835 columns, but the error message says 1686366, so which one is the correct number of columns? If it's 1835 then there's an error before feeding your set to the model.

Also, are you sure you need a float64 data type? You can reduce the memory consumption by using float32 instead of float64 (unless you really need to work with that precision)