Here's a simpler solution for the mentioned error code without running scripts whose impact no one knows:
Run this command in an command prompt as admin:
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vdsldr.exe" /f
Edit 10/06/2022
If this command does not fix the error, then run the following command in the command prompt as admin:
wmic /namespace:"\\root\subscription" path __EventFilter where Name="Skip TPM Check on Dynamic Update" delete
Greetings