Error in long vectors not supported yet when build and install package with big data

I have a SpatialGridDataFrame object, which is 3655.2 Mb, row of 34221292 and column of 14.
I have successfully build this dataset in a package with R3.6, however, when I update my R to R4.0, it could not be build and installed sucessfully with devtools, with the error below:
long vectors not supported yet: connections.c:6011
However, it could be successfully loaded in R4.0, and my computer have a memeroy of 64GB with windows 10 64bit.