Hi,
Generally speaking, this is because the hardware is plugged off or disconnected for some reason.
And sometimes, the power supply loss for the devices also causes the similar error.
Then during your application, make sure the hardware connection is untouched and the power supply is stable.
Hope this will help somehow.
Thanks.
-Chris