These two statements in the spec are equivalent.
If the resolution is not successful, the didResolutionMetadata structure MUST contain an error property describing the error
https://w3c.github.io/did-resolution/#did-resolution-metadata:~:text=If%20the%20resolution%20is%20unsuccessful%2C%20this%20structure%20MUST%20contain%20an%20error%20property%20describing%20the%20error.
The error property in the DID Resolution Metadata is REQUIRED when there is an error in the resolution process
https://w3c.github.io/did-resolution/#did-resolution-metadata:~:text=This%20property%20is%20REQUIRED%20when%20there%20is%20an%20error%20in%20the%20resolution%20process
In the DID Resolution test suite call it was suggested to remove the second one.