I found the code causing the program to crash out. In the class ActivationService I commented out the line relating the to the theme selector service. After some Testing I have not seen any negative effects. (Switching between light and dark themes still works.
private async Task InitializeAsync()
{
//await _themeSelectorService.InitializeAsync().ConfigureAwait(false);
await Task.CompletedTask;
}