Stack OverFlow error

This error is thrown by the Connect method when the supplied index is out of bounds. Given that the latter value is 0, this means that internally the BLE extension hasn't discovered any devices. I don't see any when BluetoothLE1.DeviceFound blocks in your code, so it's possible you haven't confirmed that the device has been discovered before trying to connect.