Generally exceptions negate any operation from applying by rolling back the transaction, so I'm surprised it saved at all. I don't think there would be further adverse effects in this particular case, but I wouldn't recommend running PHP 8.1 before at least XF 2.2.8 and preferably 2.2.13 as other issues may not be as clear-cut.