Try to not use the preview version of the UiPath.UIAutomation.Activities package, and in the Manage package try to change it to Lowest Applicable Version.

If you have a warning with dependency downgrade, try to accept it.
Let us know if this solved the dependency downgrade.
or
Install with strict runtime rule the UiPath 22.12.50.54269-preview dependency and retry.
More details about NuGet Error NU1107