[PATCH 1/3] Raise DeviceError instead of ValueError from device ctor. (#888089)