Windows 10 Tech Preview Runtime Error R6031

i keep getting this runtime error everytime i try and install something. i have tried uninstalling visual studios, restarting pc then reinstalling it. but that doesnt work. tried searching for search protect and getting rid of that but i dont have it on my computer, and i also tried to run everything in compatibility mode but that still doesnt want to work. it has worked for a few apps but that was before i refreshed my OS and rolled back an update

after i rolled back an update it was working fine then it the error just started up again

Windows 10 breaks a lot. This is still a beta after all.