I had this problem not too long ago. What I did was go on the Downloads tab on the Line6 website, then for the filters I picked Toneport UX2 / Drivers / Windows 10. From there I downloaded the latest and ran the .exe. Now my UX2 works again.
Link: https://line6.com/software/index.html