Like Migz-DH, I did a clean install and the error no longer occurred I used the same computer name, signed in with my Microsoft account, and installed the apps that were installed when I went from 21H2 to 22H2. I did that to see if I could spot what might have triggered the error.
Due to my limited knowledge I did not find anything.