The error you are seeing in MSAL.NET for .NET 4.8 framework with an embedded browser may be related to a bug in the WebView2 SDK on the .NET Framework platform. One workaround is to add a <PlatformTarget> with values AnyCPU, x86, or x64 to your application project file. x86 or x64 have to match the target framework of the WebView2 installed on the machine. Another workaround is to add <PlatformTarget>AnyCPU</PlatformTarget> in your app's project file and also directly reference the WebView2 NuGet package. For more information, see Using WebView2 with MSAL.NET.
References: