ECPair: throw for invalid network