I'll try this, though this solution seems a little strange to me. I did try to delete all cache files including those two that belong to Riverview to no avail. During the next game session I observed their size closely and the glitches started when their sizes were about 50-80 Mb each. Their sizes previous to deletion were ~500 Mb each and it looks like this is the maximum size cause from there on they don't grow. I think that after this point they start to recycle old data with new, maintaining stable size. But since the deletion doesn't change a thing its unlikely that the problem is there.
Right now I save every 3-4 sim hours (takes about a minute or two) and reload at the sign of problem. I've managed to live through two sims days like this with three reloads.
When you say error 12 or error 13 where do you get the number? Do you see some kind of a pop up window that says that there has been an error? Because I've never got anything like this.
EDIT:
I tried these suggestions of yours first;
Use after starting a new loaded game.
Using Awesomemod:
1. Resetallwants
2. Cleanhouseholds all
3. Refreshtraits all
4. Purgegenetichair
5. Fixall
6. Fixagingstates
7. Purgereactions
8. Fixromances
9. Towderelicts on (sometimes this command does not work on some cars and you have to individually nuke stuck cars)
10. Resetworld
11. Destroyallnpcs (Some grim reaper hacks and outfits + 1.3 game update causes bugged reapers)
12. Destroyalltownies (optional) but sometimes the townies are bugged
13. ResetDnP all
14. Destroycorruptsims (so far this command always yield me 'zero' corrupt sims but better be safe)
Using NRaas Supercomputer
1. Recover Lost Sims
2. Recover Wandering Toddlers
3. Turn off stereos
Save
Quit and restart game.
At the end of the sim day my family became invisible and stuck again. After that I used resetworld and though they still remained invisible they got unstuck. Their next interaction got them stuck again, BUT I used resetworld again and saved the game immediately. It got saved and when I reloaded sims were visible again. Just to be clear, before I couldn't save at all and I had to close the game through task manager, previous save didn't get overwritten, it remained untouched, as though I didn't try to save at all.
Current solution, as much as it is imperfect at least lets me to continue playing from the same moment, instead of replaying the same day all over again.
I will still try to rename Sunset Valley.objectCache file.