How do I identify a process instance is failed?

When you say “failed” do you mean that some kind of technical error has occured in the process.
If so an incident would be created and view-able in cockpit.