How can I fix Error:Unexpected device state 'Recovery' expected 'RestoreOS'

Error:Unexpected device state 'Recovery' expected 'RestoreOS'

Error:Unexpected device state 'Recovery' expected 'RestoreOS'
Re: Error:Unexpected device state 'Recovery' expected 'RestoreOS'

1. Latest version of iTunes.
2. DFU mode
3. Different USB port
4. Different USB cable

If fails, try again and then a third time. If after 3 attempts, you still cannot restore the device, make a Genius Bar appointment with the nearest Apple Store.

Original thread: https://forums.imore.com/threads/how-can-i-fix-error-unexpected-device-state-recovery-expected-restoreos.327581/