I think that might be the problem, changing your username, for the first instance. I didn't think it was relevant, I thought it was just a random error, but I was logged out after changing my name as well. I'd imagine in that aspect it's something to do with how XenForo handles cookies. As for the inactivity, I'm not sure. It has to do with the upgrade, maybe one of the security patches?