Hard-coding so much data is not a common use-case, so it isn't surprising the compiler doesn't handle it well.
A better solution would be to put the data into some format that is easier to read than CSV. For example, consider writing a program that parses your CSV file and serializes the resulting structure using some package like cereal. Then your main program can read the binary file, which should be much faster than your CSV file.
This approach has the added benefit that running your program on new data will be easier and won't require recompiling.