Warning: This script was written specifically for this user, for use on that particular machine. Do not run this script on another machine.
Download the attachment and extract it.
Open the extracted folder, double-click the file regfix.reg.
When prompted allow to change the registry settings.
Report the result.
Restart the machine.
Try to install KB5017365 only and report the result.
If it fails copy the file C:\Windows\Logs\CBS\cbs.log to your desktop, zip the copied file and attach the zipped cbs.log to your next reply.