Heavy usage of the item links, for example, during indexing, publishing, and viewing item links in the Content Editor, might lead to increased resource consumption and eventually a System.OutOfMemoryException. The following error might appear in Sitecore log files:
Exception: System.OutOfMemoryException Message: Array dimensions exceeded supported range. Source: mscorlib at System.MulticastDelegate.CombineImpl(Delegate follow) at Sitecore.DependencyInjection.ServiceLocator.add_OnReset(Action value) at Sitecore.DependencyInjection.ServiceLocator.GetRequiredResetableService[T]() at Sitecore.Data.SqlServer.SqlServerLinkDataProvider.GetLinks(String sql, Item item, Object[] parameters) ...
To resolve the issue, consider one of the following options: