r glm - Error in names(coef) <- xnames only for 2 columns in data
The problem is with datatype integer64. I don't know why this is the problem, but change it to type integer.

ratings = as.integer(ratings)

Normally, I have not seen anyone using integer64 datatype.