I'm getting the same error when reflectivity = 0
reflectivity = 0
Changing reflectivity to 0.1 will fix this issue.
let floor = SCNFloor() floor.reflectivity = 0.1