Problems when changing environment on API endpoints

I have a problem that I think came up after the latest Windows Update on my development machine. I have made a clean install of Powershell Universal and use Powershell 7.4.1. I have created a simple Get API that has Return “Test” which works fine. If I change the environment of that endpoint to i.e. Windows Powershell 5.1 or any other and clicks on the “Endpoint” a error message shows up and I can no loger see my endpoints until I remove the -Environment from the endpoint.ps1. After this the specific API is dead.

Error message:
This is an error with the configuration script for this page. You will need to correct the issue manually before continuing.
Status(StatusCode=“Internal”, Detail=“Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.”, DebugException=“System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.”)

Product: PowerShell Universal
Version: 4.2.11