Get-MsolDirSyncProvisioningError will only return DirSync provisioning errors. The Connect Health portal also shows other sync error types such as export errors. Read more about Microsoft Entra Connect Sync errors.