@KoolKatYOLO have you identified what action may be triggering the error code or does it appear to be random?
I switched from Xbox one to Xbox Series S after my console got a series of error codes. I narrowed it down to a couple of things. Firstly I couldn't use the gallery or the game's premade rooms without triggering error codes.
Secondly I couldn't take photographs or store them in my personal inventory or display them on walls. I'd just added the Moschino pack and the photography career is impossible to play because of error codes.
I ended up speaking to Microsoft about it, then because I had excessive crashing too I upgraded. The crashing continued but I've avoided gallery downloads, pre made rooms and using the camera and so far no codes.
My old Xbox works fine for other games, Microsoft told me it's a problem specific to the Sims.
It means I miss out on part of the game but I'm still not prepared to risk any of these actions, although I would like to use them again.