Creating a file-based project throws an exception "The registered delegate for type ILanguageCloudService threw an exception. Object reference not set to an instance of an object."

Using Trados Studio 2022 SR2 CU9 (17.2.9.18688)

I adding Studio 2022 SR2 compatibility to a project automation tool that I wrote years ago and the code has always worked over the years. Now with the latest Studio version, it throws an exception - what am I missing? 

Stacktrace:

System.Exception: The registered delegate for type ILanguageCloudService threw an exception. Object reference not set to an instance of an object. ---> SimpleInjector.ActivationException: The registered delegate for type ILanguageCloudService threw an exception. Object reference not set to an instance of an object. ---> SimpleInjector.ActivationException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Sdl.Versioning.Versions.GetBuildVersion()
at Sdl.BestMatchServiceStudioIntegration.Common.AbstractApiClient..ctor(IApiContext apiContext, ILoggerFactory logFactory, INetworkConnectivity networkConnectivity, IEventAggregator eventAggregator, INetworkConnectionChecker networkConnectionChecker)
at lambda_method(Closure )
at SimpleInjector.InstanceProducer.BuildAndReplaceInstanceCreatorAndCreateFirstInstance()
at SimpleInjector.InstanceProducer.GetInstance()
--- End of inner exception stack trace ---
at SimpleInjector.InstanceProducer.GetInstance()
at SimpleInjector.Container.GetInstanceForRootType(Type serviceType)
at SimpleInjector.Container.GetInstance[TService]()
at Sdl.Desktop.Platform.DI.SimpleInjectorContainerWrapper.GetInstance[TService]()
at Sdl.TranslationStudio.LanguageCloud.LanguageCloudModule.GetLanguageCloudService(IContainer container)
at Sdl.TranslationStudio.LanguageCloud.LanguageCloudModule.<>c__DisplayClass3_0.<RegisterCommon>b__0()
at lambda_method(Closure )
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.Execute(Func`1 instanceCreator)
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.GetInterceptedInstanceWithNullCheck()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.GetInterceptedInstance()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.BuildExpression()
at SimpleInjector.InstanceProducer.BuildExpressionInternal()
at SimpleInjector.Internals.LazyEx`1.InitializeAndReturn()
at SimpleInjector.InstanceProducer.BuildExpression()
--- End of inner exception stack trace ---
at SimpleInjector.InstanceProducer.BuildExpression()
at SimpleInjector.Registration.BuildConstructorParameters(ConstructorInfo constructor)
at SimpleInjector.Registration.BuildNewExpression()
at SimpleInjector.Registration.BuildTransientExpression()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.GetInterceptedInstanceWithNullCheck()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.GetInterceptedInstance()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.BuildExpression()
at SimpleInjector.InstanceProducer.BuildExpressionInternal()
at SimpleInjector.Internals.LazyEx`1.InitializeAndReturn()
at SimpleInjector.InstanceProducer.BuildExpression()
at SimpleInjector.Registration.BuildConstructorParameters(ConstructorInfo constructor)
at SimpleInjector.Registration.BuildNewExpression()
at SimpleInjector.Registration.BuildTransientExpression()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.GetInterceptedInstanceWithNullCheck()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.GetInterceptedInstance()
at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonRegistration.BuildExpression()
at SimpleInjector.InstanceProducer.BuildExpressionInternal()
at SimpleInjector.Internals.LazyEx`1.InitializeAndReturn()
at SimpleInjector.InstanceProducer.BuildInstanceCreator()
at SimpleInjector.InstanceProducer.BuildAndReplaceInstanceCreatorAndCreateFirstInstance()
at SimpleInjector.InstanceProducer.GetInstance()
at SimpleInjector.Container.GetInstanceForRootType(Type serviceType)
at SimpleInjector.Container.GetInstance[TService]()
at Sdl.ProjectAutomation.FileBased.ProjectApiBootstrapper.RegisterMinimumAPIFunctionalityTypes()
at Sdl.ProjectAutomation.FileBased.FileBasedProject.EnsurePluginRegistryIsCreated()
at Sdl.ProjectAutomation.FileBased.FileBasedProject.PerformPreChecks()
at Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(ProjectInfo projectInfo, ProjectTemplateReference templateReference)
--- End of inner exception stack trace ---
at Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(ProjectInfo projectInfo, ProjectTemplateReference templateReference)
at WorldServer_Package_Automator.Form1.CreateProject(String strExtractDir, String SRCLang, String TRGLang)

Code:

Dim NewProjInfo As New ProjectInfo
Dim StudioProjectTemplate As New ProjectTemplateReference(Path_to_sdltpl)
Dim NewProj As FileBasedProject
NewProjInfo.SourceLanguage = SourceLang
NewProjInfo.TargetLanguages = TargetLang
NewProj = New FileBasedProject(NewProjInfo, StudioProjectTemplate)