This suggests there could be a problem with your input data, I can't answer without seeing it. Could be a problem with NAs, with factor levels, ...
First, do check the results of:
table(all_trips_v2$member_casual, all_trips_v2$day_of_week, useNA = 'ifany')
and
table(is.na(all_trips_v2$ride_length))
Maybe something will be obvious here. Otherwise, could you share a reprex?