As
rayminator says, I think some examples might help here.
Is it just one game? Based on your initial "
While testing and modding some games", that sounds like it's happening fairly often to multiple games.
Have you ever published any of your mods? i.e. Is there somewhere we could download one of them? I can see messages here on F95 where you have discussed other peoples mods for Big Brother: Another Story, Long Short Story and Milfy City - but nothing concerning your own mods. I only ask, because perhaps it's something your mod(s) is doing that causes the game to initially "force quit". If we could see a recent mod that has caused you problems, perhaps we can see something that's causing it.
Have you ever had RenPy games "force quit" on you without you trying to mod or unpack them? Again, I only ask because it's possible that it isn't RenPy or your mod(s) and is your computer setup itself. If unmodded RenPy games crash for you but not the rest of the community - that points to something unique to you. If only modded games crash, then it possible something you are doing is the cause.
The
need to delete the persistent file to get the game running again makes me think that the initial crash of the game is the real source of your issues. Perhaps it's something as simple as getting a disk write error while trying to write the save/persistent data.
One practical thing you could check is whether both copies of the persistent file are been kept in line.
Save and persistent files are stored in two places on your computer.
Firstly the game folder's own save folder. Perhaps
D:\Games\{game-ID}\game\saves\
... and a common RenPy folder. Likely
C:\Users\{username}\AppData\Roaming\RenPy\{game-ID}\.
The
persistent file in both these folders should be the same date/time and be the same size.