Grpc.Core.Internal.CoreErrorDetailException: grpc_message":"Stream removed","grpc_status":2}")

Getting the following error when executing a PowerShell 7.1 script. When I run the script locally on the Powershell Univeral Server everything works correctly. This worked prior to upgrading to
3.7.14

Error executing job: Status(StatusCode=“Unknown”, Detail=“Stream removed”, DebugException=“Grpc.Core.Internal.CoreErrorDetailException: {“created”:”@1678974816.671000000",“description”:“Error received from peer ipv6:[::1]:64094”,“file”:“…....\src\core\lib\surface\call.cc”,“file_line”:953,“grpc_message”:“Stream removed”,“grpc_status”:2}")

Event Viewer Errors

Log Name:      Application
Source:        .NET Runtime
Date:          3/16/2023 6:53:26 AM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      dw-utils.dsone.3ds.com
Description:
Application: pwsh.exe
CoreCLR Version: 7.0.222.60605
.NET Version: 7.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeLoadException: Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at OracleInternal.ConnectionPool.PoolManager`3.CreateNewPRThreadFunc(Object state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2023-03-16T13:53:26.191487700Z" />
    <EventRecordID>36908</EventRecordID>
    <Channel>Application</Channel>
    <Computer>dw-utils.dsone.3ds.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: pwsh.exe
CoreCLR Version: 7.0.222.60605
.NET Version: 7.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeLoadException: Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at OracleInternal.ConnectionPool.PoolManager`3.CreateNewPRThreadFunc(Object state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
</Data>
  </EventData>
</Event>
Log Name:      Application
Source:        Application Error
Date:          3/16/2023 6:53:26 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      dw-utils.dsone.3ds.com
Description:
Faulting application name: pwsh.exe, version: 7.3.2.500, time stamp: 0x638f99ee
Faulting module name: KERNELBASE.dll, version: 10.0.17763.4010, time stamp: 0x99afe86a
Exception code: 0xe0434352
Fault offset: 0x00000000000349b9
Faulting process id: 0x35c
Faulting application start time: 0x01d9580eace77a0f
Faulting application path: C:\Program Files\PowerShell\7\pwsh.exe
Faulting module path: C:\windows\System32\KERNELBASE.dll
Report Id: 33922282-e15c-44d1-838e-d873ebdb96aa
Faulting package full name: 
Faulting package-relative application ID: 
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2023-03-16T13:53:26.379007200Z" />
    <EventRecordID>36909</EventRecordID>
    <Channel>Application</Channel>
    <Computer>dw-utils.dsone.3ds.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>pwsh.exe</Data>
    <Data>7.3.2.500</Data>
    <Data>638f99ee</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>10.0.17763.4010</Data>
    <Data>99afe86a</Data>
    <Data>e0434352</Data>
    <Data>00000000000349b9</Data>
    <Data>35c</Data>
    <Data>01d9580eace77a0f</Data>
    <Data>C:\Program Files\PowerShell\7\pwsh.exe</Data>
    <Data>C:\windows\System32\KERNELBASE.dll</Data>
    <Data>33922282-e15c-44d1-838e-d873ebdb96aa</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>