Tests run on Android devices with AutomationName uiAutomator2 may fail with:
Infrastructure Error -- The Sauce VMs failed to start the browser or device.
One way to mitigate this is to add the following capability to your test:
"remoteAppsCacheLimit" : "0"
Setting this to 0 disables caching and pushes the application directly to the Android Emulator storage instead of caching it in the SD card before installing.
See here for more details.