Error when opening different menus

I would say reinstall .NET Framework, if you are certain that System.Attribute isnt an issue in your customization. I had some weird issues at one point and a .NET Reinstall helped, I couldnt explain it because I already had .NET 4.7.2 and then removing it and reinstalling it solved it.

EDIT:
I had to Uninstall and Install, Repair didn’t fix it.

Try that.