Oh, wait. I just noticed this at the bottom. You need to remove these parameters. They are likely from when SAML2 was added some how.
-SaveTokens $false -UseTokenLifetime $false -GetClaimsFromUserInfoEndpoint $false
What’s happening is the authentication.ps1 file is failing because those aren’t part of the forms parameter set.