Unable to create a new identity using New-PSUIdentity

Product: PowerShell Universal
Version: 5.1.0

Hello everyone!

I am currently trying to create a form on PSU that takes data and then uses it to create a new identity using New-PSUIdentity.
The problem is I keep coming across these gRPC errors.

New-PSUIdentity -Name 'XYZ' -Integrated -TrustCertificate
An error occurred: Status(StatusCode="Unknown", Detail="Bad gRPC response. HTTP status code: 500")

I don’t know how to work around this. I use this code within PSU from my app page

I use -TrustCertificate to bypass another SSL issue and integrated is not making a difference at all

Thank you in advance for your help

as an update to this we have moved from the 5.1.0 nightly build to the latest stable version and it seems to have fixed the problem