You were probably hit by the OpenZFS bug in regards to vdev removal.
Here is the upstream bug report. A fix was implemented (thanks to @mav) to prevent future kernel panics. However, the issue of recovering from a kernel panic (due to this bug already being triggered) has yet to be made, since it involves a deeper dive.