Zend certified PHP/Magento developer

How to fix PowerShell 7.3.0 Fatal error 0xC0000005

Installed PowerShell 7.3.0 on Windows 11 using the MSI package. All seemed good. But I get an error when I try running it using either of these two methods:

  1. On Terminal, select Powershell in Open a new tab
  2. Under Command Prompt, type pwsh.

The error is the same:

>pwsh
PowerShell 7.3.0
Fatal error. 0xC0000005
   at System.Management.Automation.Security.SystemPolicy+WldpNativeMethods.WldpCanExecuteFile(System.Guid, WLDP_EXECUTION_EVALUATION_OPTIONS, IntPtr, System.String, WLDP_EXECUTION_POLICY ByRef)
...
   at System.Threading.Thread.StartCallback()

There is a post on GitHub that describes an identical issue. But my understanding of their proposed solution is to use version 7.2.7 instead. Before I go figure out how to do that, would appreciate knowing if anyone has an actual solution or a better suggestion. Otherwise, I can post an answer later to report if an earlier version (or an alternative) works.