If he never shed his old skin, then it could have killed him
If he wasnt given proper husbandry, where it was too cool or too hot, or low humidity, it would have also given him trouble as well.
First question is, where did you buy him from, and had you ever taken him to the vet for a fecal float?
The bloating makes me believe it was either internal parasites, or his temps were to cool, leading to the prey rotting in his belly. Coupled with a completely stuck shed, this does not sound like he was given a good chance at all.
Sorry for the loss, but please tell us where you bought him, and what are the conditions were in his cage?