Shutting down a computer with no error screen is almost certain overheating or bad voltages, so that's most likely what is going on.
Somes games are better optimized than others, just because you can run skyrim and fallout doesn't mean that sims 4 couldn't be heating your system more than both of those games.
Time to open your computer, clean it, improve the cooling solution or change your PSU.