Returning License exits with status code 1 in newer Unity version even though it succeeds

Previous version 2022.3.19f1 → no issues

Current version 2022.3.29f1 → exits with status code 1

The code I’m calling on the build machine is

Unity -batchmode -quit -returnlicense -nographics

the logs are exactly the same, it ends with success, but now it exits as if it didn’t succeed

We only updated the unity version, no other changes.