Once I identified what it was causing it with the help of Microsoft and experienced players on here I reset my Console and uninstalled and reinstalled my packs.
There's a decision to be made about keeping saves and Microsoft told me I could reset my Console and "Keep my apps and games". But the error code had wiped my saves anyway. So I personally chose to clear everything because there was nothing left of any use on that occasion. I couldn't make new saves at all.
I haven't taken a photo since and it's such a shame because I loved that feature. I also haven't downloaded from the gallery or used saved rooms. I'd like to be able to do that again but I'm too anxious about more error codes even though I'm on a new Xbox Series S. The friend who got my old Xbox One S has had absolutely no problems with it.
But the positive thing I've found is that identifying the trigger(s) for the error code is essential to stop it from happening and once you've done that it hopefully should be okay as long as you don't repeat that action.