Visual Studio 2019 - An error occurred while initializing the frame's content

In Visual Studio 2019 16.6, I tried opening a TSQL file but get this error

An error occurred while initializing the frame's content System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.set_StubInfo(StubWindowInfo value) at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(FrameMoniker frameMoniker, Boolean isDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid, Guid rguidCmdUI, ViewGroup parent, IVsWindowFrame& ppWindowFrame)


A work around is to right click, Open With and use a different editor.

This is only temporary however and if you use the other editor as default, it too eventually succumbs to the issue and you have to switch to the original / alternate.

Open With dialog