The restore operation for database '{0}' did not complete because of an operating system error. This error can occur because ...

The restore operation for database '{0}' did not complete because of an operating system error. This error can occur because the primary and secondary availability replicas have incompatible directory structures.  For information about how to restore files to a new location, see SQL Server Books Online.