You're getting that error in the first piece of code because the viewpoint is being placed in a location that causes a collision when the collision event occurs.
In the second piece of code the viewpoint is set to [0,1.82,0] unless the eyeheight has been changed. That command will always move the view above the origin.
If you want to move the viewpoint somewhere else use
Code:
viz.MainView.setPosition()
but make sure the position is not at ground level or colliding with another object.