is this too many variables?

Each integer uses 4 bytes, so that’s over 24 terabytes of data. Yes, that’s way too many data. Whatever it is you’re trying to do, you probably better look into a different way of doing it.