Points to check if unattended flows getting into error.
1. Make sure you have PA unattended license
2. Make sure machine configuration is done correctly. (Machine Settings)
3. Make sure the machine is logged off while running the flow.
4. Make sure that machine is set active by admin to be able to log in unattended.
5. Make sure to have the latest version of PA desktop installed in the system.
6. Best practice is to run the flow attended in same machine before running unattended.