Why did my Excalibur go all explodey on me?
Either you were not Lawful or you had a negative alignment record (from displeasing your god) at the time you attempted to equip the artifact. See the linked article for a list of the numerous ways you can piss off a deity.