Cannot Connect to Gmail - New Account Wizard

Can someone help me fix the Gmail connection? It used to work a long time ago, but it hasn’t since version 10 of eM Client. The synch works fine on my iPhone, so I believe this a bug in eM Client. I have signed in via Google and given all permissions.

eM Client 10.3.2619+1e54f4a61e (Windows)
12:23:33 PM Personal Google Contacts Synchronizing folder '/All Contacts'
12:23:33 PM Personal Google Settings Synchronizing tags
12:23:33 PM Personal Google Contacts Synchronizing folder list
12:23:34 PM Personal Google Contacts Synchronizing folder '/Other Contacts'
12:24:48 PM Personal [IMAP] MailClient.Accounts.ConnectionException: Failed opening connection to server.
            ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
              at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
              at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
              at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
           --- End of stack trace from previous location ---
              at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
              at MailClient.Imap.Base.Connection.CreateTcpClientAsync(String hostname, Int32 port, TimeSpan timeout, CancellationToken cancellationToken)
              at MailClient.Imap.Base.Connection.<>c__DisplayClass82_0.<<ConnectAsync>b__0>d.MoveNext()
           --- End of stack trace from previous location ---
              at MailClient.Imap.Base.TransportPipe.<>c__DisplayClass28_0.<<UpgradeStreamAsync>b__0>d.MoveNext()
           --- End of stack trace from previous location ---
              at MailClient.Imap.Base.TransportPipe.UpgradeStreamAsync(Func`2 callback)
              at MailClient.Imap.Base.Connection.ConnectAsync(Func`2 getStream, CancellationToken cancellationToken)
              at MailClient.Imap.Base.Connection.ConnectAsync(Func`2 getStream, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
              --- End of inner exception stack trace ---
              at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ConnectionPool.AcquireConnectionAsync(Folder mailFolder, Boolean noSelect)
              at MailClient.Protocols.Imap.ConnectionContext.CreateContextAsync(ImapAccount account)
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.ListFoldersAsync(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.GetFolderList(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass21_0.<RunEnqueueGetFolderList>b__0(WorkerStatus status, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapActionCommand.<>c__DisplayClass11_0.<.ctor>b__0(WorkerStatus ws, CancellationToken ct)
              at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
              at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
           --- End of stack trace from previous location ---
              at MailClient.Storage.Synchronization.FolderSynchronizerExtensions.SynchronizeSubfoldersAsync(IFolderSynchronizer synchronizer, Folder folder, SynchronizationPriority priority, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
              at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
             AccountId = cdd97fcf-0c40-4149-8cce-099f62253ac2
             AccountName = Personal
             IMAP_SERVER_TYPE = Unknown
             RunInPlace = False
             GUIStatus_Exception_Reported = True
             SocketException
               ErrorCode = 10060
               NativeErrorCode = 10060
               SocketErrorCode = TimedOut

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

SocketException
ErrorCode = 10060
NativeErrorCode = 10060
SocketErrorCode = TimedOut

If you have completed the add account automatic setup wizard for Google Workspace ok and allowed eM Client access to your Gmail account at the end of the wizard, the above errors can sometimes happen if you have background resident programs interfering with the mail client such as a eg: optionally installed Firewall / Security program, or optionally installed Antivirus program or Vpn or Proxy. So if you have anything like that installed “other than what comes default with the OS” then try completely disabling those to test.