In that scenario, Visual studio and Xamarin reinstall could be the most prudent choice. Get the fastest and smoothest gaming performance with BlueStacks - the world's most popular, safest and FREE Mobile Gaming Platform for Windows and Mac. Your emulator should now work without any issues, unless your attempts to "fix" the issue caused some other problems with it.
PSemuX is an open source PS5 Emulator for Windows, Mac, iOS & Android.
Try to start VS as administrator to try to avoid the problem. I am using MacBook Air for my android development. Make the amount of resources required by your Android emulator lower Thus, we will be managing our installation from QEMU, an emulator for x86/ARM/PowerPC/etc. All other emulators like BlueStacks, Nox Player, KO Player will also not run/install.
Not sure if I'm maybe late to the party, but here is an explanation of the issue and a simple solution that might help at least others with the same problem.