@Magi_al_Moose Did you do the repair install as well? I ask because this error is from a component of Windows, not anything else, and it shouldn't be happening. I'm not actually sure how serious it is, but I'd suggest keeping an eye on the Reliability Monitor for a while to see whether this happens again.
For the Sims 4 issue, please create a new admin Windows account and try playing there. Make it local, as in, don't link it to a Microsoft account or any email address at all. You'll be able to launch the game without reinstalling anything, but your saves and other user data won't be available. That's fine and can be addressed later if necessary.