EllipsoidFactor: add safety limits to stop while() going forever