UE5: Trying to build project in VS nukes "UnrealHeaderTool" and then complains about it missing, corrupting the engine install

I had this issue today as well. For me, it was installing the Substance plugin from the launcher. Interestingly, adding the plugin manually to a project instead of the engine doesn’t cause any issues for me. I have also seen a similar post where someone had issues with the Discord plugin.