Game freezes After a certain time

Dear Community

I have the following problem: After a certain time, or after a certain interaction with the game, the game freezes on my smartphone.

I have no idea what the problem could be. I don’t see any errors in the programming, no endless loop or anything like that.

The only thing I can imagine is that the smartphone’s RAM is full…
Does anyone have any other ideas, or is it possible to clear the RAM during the game?

Many thanks for your help