"500 error" on username edit

I’ve had a 500 error when changing a user’s email address the other day (more precisely, he got the error when clicking the confirmation link). Could this be related?