Cache crash

I am trying to run an endless simulation across 15 levels. When a level opens up, cameras fly around, a song plays, when the song is done, another level opens up, repeat above.
This works for around 14 hours, for around 330 instances of opening levels.

I get a crash usually around the 330th level opening. I am not able to google this problem:

Assertion Failed
Slot Index < CachSlotCapcity
FileCache.cpp line 367

I thought that by opening a new level every 3-4 minutes I’d clear out everything and start fresh each new level. Why would a building up of opening levels cause a crash like this?

Any ideas how I could avoid this issue? I’ve been optimizing the game, I have no circular dependencies. I’ve done numerous builds, deleted /Saved /Intermediate /DerivedDataCache…

I also have this issue if I set bShareMaterialShaderCode true

I’m also having the same problem, happens consistently after the loading level 252 times, in our case we switch back and forth between a lobby level and a gameplay level. Our project is on 4.25, it looks like FileCache had some big changes around this time. Unfortunately our project isn’t compatible with 4.26 so we can’t tell if upgrading will help.

Yeah setting it to false seemed to fix it for me. Add this to DefaultGame.ini

[/Script/UnrealEd.ProjectPackagingSettings]
bShareMaterialShaderCode=False

I’m also have this issue on both ios/andriod device,is there any commit solve this problem?