Could you please run devmgmt.msc, click View tab -> Show hidden devices and View by Connections.
Then check if you find any spacedesk devices, please right-click uninstall it, especially spacedesk virtual HID device.
If there’s any devices underneath it, please delete them first before the spacedesk virtual HID device.
If the above suggestion does not help, please go to https://support.microsoft.com/en-us/topic/fix-problems-that-block-programs-from-being-installed-or-removed-cca7d1b6-65a9-3d98-426b-e9f927e1eb4d and download the troubleshooter.
If spacedesk is not on the program list, just select “Not Listed” then paste the product code of v0989 MSI below: