Failed to get content with id=

I have created a umbraco 13.7.2 site where in the background an import will perform and it will publish some 40 nodes each time. Now I get this error on any page if the import does _contentService.SaveAndPublish:

failed to get content with id=
source: Umbraco.PublishedCache.NuCache
stacktrace:
at Umbraco.Cms.Infrastructure.PublishedCache.PublishedContent.get_ChildrenForAllCultures()+MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.ToArray()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToList()
`

It seems it often happens in partials and in code like this is called: HomeNode.DescendantsOfType(“location”)?.Where(x => x.IsPublished() && x.Value(“showInOverview”))?.ToList();
So basically where it needs to iterate over nodes

Any Ideas how to solve this?

You can reproduce it by creating a RecurringHostedServiceBase that updates a set of nodes using IContentService _contentService _contentService.SaveAndPublish(node). and simultaneously visit the frontend and keep refreshing.