Error with one of 2 emails

I have the red triangle with exclamation mark next to one of my email addresses I still receives emails but does not seem to sync with gmail app on my phone. This may be related to my new computer.

2:55:10 PM [email protected] [IMAP] System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Last[TSource](IEnumerable1 source) at MailClient.Storage.Mail.Data.DbMailRepository.DbConversationRepository.MailRepository_RemovingItems(Object sender, ItemEventArgs1 e, Func2 getConversationId, Boolean clearConversationId) at MailClient.Storage.Mail.Data.DbMailRepository.DbConversationRepository.MailRepository_RemovingItems(Object sender, ItemEventArgs1 e)
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at MailClient.Storage.Data.DbRepository1.RemoveByItems[ST](Object senderContext, IEnumerable1 items) at MailClient.Storage.Data.DbRepository1.Remove[ST](Object senderContext, IEnumerable1 items) at MailClient.RepositoryExtensions.Remove[T,ST](IRepository1 repository, IEnumerable1 items) at MailClient.Protocols.Common.ItemSynchronizeContext2.RemoveItems[TUid,TVid](IReadOnlyCollection1 obsoleteItems, Dictionary2 uniqueIdToVersionId, Dictionary2 uniqueIdToOid) at MailClient.Protocols.Common.ItemSynchronizeContext2.<>c__DisplayClass20_03.<Synchronize>g__FlushItems|1(Int32 threshold) at MailClient.Protocols.Common.ItemSynchronizeContext2.Synchronize[T,TUid,TVid](SynchronizationType synchronizationType, IEnumerable1 items, Func2 getUniqueId, Func2 getVersionId, Func3 hasChanged, Func2 isDeleted, Func2 convertItems, Action2 updateItem) at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.WriteSyncItemsToDb(CancellationToken& cancellationToken) at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.DeleteExpungedMessages(CancellationToken& cancellationToken, Boolean fromInterruption) at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.ProcessPriorityUpdatesAsync(CancellationToken& cancellationToken) at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.UpdateIdToUidSearch(CancellationToken cancellationToken) at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.SynchronizeFolder(Dictionary2 infoOldFlags, UInt32 serverMessageCount, UInt32 newMessagesTotal, UInt32 uidNext, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.SyncOperations.NormalSyncOperation.ExecuteInternalAsync(CancellationToken cancellationToken)
at MailClient.Protocols.Imap.SyncOperations.BaseSyncOperation.ExecuteAsync(CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken) at MailClient.Protocols.Imap.ImapMailSynchronizer.SynchronizeMessagesAsync(IItemSynchronizeContext1 synchronizeContext, Folder folder, Boolean fast, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ImapMailSynchronizer.Synchronize(IItemSynchronizeContext1 synchronizeContext, Folder folder, CancellationToken cancellationToken) at MailClient.Protocols.Common.ItemSynchronizer2.<>c__DisplayClass39_2.b__6(WorkerStatus status, 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.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<b__0>d.MoveNext()
IMAP_SERVER_TYPE = Gmail
RunInPlace = False
EnqueuedStackTrace =
at MailClient.Protocols.Common.ItemSynchronizer2.<>c__DisplayClass39_0.<EnqueueSynchronize>b__0() at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline) at MailClient.Protocols.Common.ItemSynchronizer2.Synchronize(Folder folder, SynchronizationPriority priority, Action1 completed) at MailClient.Storage.Application.ItemCollection2.Synchronize(SynchronizationPriority priority, Action1 completed, Boolean fromUI) at MailClient.Storage.Application.Folder.SynchronizeAsync(Boolean forced, Boolean fromUI) at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
GUIStatus_Exception_Reported = True

Error seems to have resolved itself after the app crashed while deleting emails. Maybe checking for database errors solved the issue?