ZFS is self healing and should recover from the drive being disconnected.
However, I would suggest using a proper HBA rather than an M.2 to SATA adapter. Those are known to have issues with ZFS, especially with sustained actions such as resilvering after any drive failures/disconnects.