The error in this case is not ideal – the problem likely is that the unit scaling of the STL resp. the resolution are ill-fitted. i.e. the discretization width is larger then the entire STL bounding box causing it to not voxelize.
What is the base unit of your STL?