I had this issue just the other day when PSU somehow nuked my Licenses.ps1 file.
Disabling OIDC in Appsettings temporarely, allowed me to get in and upload a new license - alternativly restore the Licenses.ps1 file in the configurations repository.
Hope it helps.