How do I fix space allocation error on a machine with plenty of space?
It doesn't matter that your instance has more than 57.8GB. R is asking for another 57.8GB on top of whatever it is already using. Not to mention any operating system overhead.

Shrink your dataset and see if it what you are doing works at small scale before trying to do it at big scale. Maybe it will work on 9,917 rows and that's good enough. Or it might fail on 500 rows in which case you need to rethink what you are doing.