i'm sorry for your loss.

mealworms aren't good for cresteds because they can't digest their chitinous shells. even if he ate a bunch and somehow got impacted it wouldn't affect him in enough in 24 hours time to cause death so i wouldn't worry about that having had anything to do with it.