This is happening because ethe library you are trying to use is developed in Windows Legacy Compatibility which is deprecated in recent release of the UiPath Studio & X.
Solution:
Connect with Academy Support team and raise this issue. They would be able to fix it but it will be time taking.