Tried the following to resolve the problem:
Administrator command prompt:
DISM /ONLINE /CLEANUP-IMAGE /SCANHEALTH
DISM /ONLINE /CLEANUP-IMAGE /CHECKHEALTH
DISM /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH
SFC /Scannow
But this did not resolve the problem.
Tried KB5018922 as suggested by Dave Patrick, then retried KB5022352, but still got:
Installation Failure: Windows failed to install the following update with error 0x800F0831: Security Update for Windows (KB5022352).
- System
- Provider
[ Name] Microsoft-Windows-WindowsUpdateClient
[ Guid] {945A8954-C147-4ACD-923F-40C45405A658}
EventID 20
Version 1
Level 2
Task 1
Opcode 13
Keywords 0x8000000000000028
- TimeCreated
[ SystemTime] 2023-04-17T05:33:48.656029800Z
EventRecordID 989930
Correlation
- Execution
[ ProcessID] 700
[ ThreadID] 5376
Channel System
Computer MainServer.corp.<domain>.com
- Security
[ UserID] S-1-5-18
- EventData
errorCode 0x800f0831
updateTitle Security Update for Windows (KB5022352)
updateGuid {BA289538-6765-4459-A614-77359C2FD283}
updateRevisionNumber 501
serviceGuid {1F080EAB-C006-46B9-A990-C1A07D61F017}
Still looking for a solution.