this has probably already been covered, But - this issue can sometimes happen on a corrupt roaming profile.
so if you apply the %appdata% fix, when you next log in the same issue applies.
you would need to fix the corrupt profile first then apply these fixes.
In win10/11 there is a teams machine wide installer that used to conflict with other teams installations.