Unable to restart service

Product: PowerShell Universal
Version: 4.2.12

Im restarting service of PU every day at 23.30 (simple command - cmd /c “net stop PowerShellUniversal & sc start PowerShellUniversal”) in task scheduler.
Dont ask why i do that , lets assume its not important why, but its not working.
Not every time at least.
Its working flawlessly when i manually restart service (i guess im not restarting this service every hour or so)
But from task scheduler every 2-3 days it fails with following error in the log:

2024-02-27 23:30:32.872 +01:00 [ERR] Failed to look up job.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at PowerShellUniversal.Client.GetJob(JobIdRequest id) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Client.cs:line 1645

It was working (this way to restart service) without any problem for months on 4.0.0-beta5 version of PU.
All started when I finally upgraded my instance to latest stable version of PU.