Do ICDs last longer for children?

Not necessarily. The longevity of the device depends on its model, frequency of use, manufacturer, the owner's medical condition, and lots of other things too.