I believe it also has to do with how much force their jaw can exert without breaking the fragile hollowed bones. Depends the age/development, as well as species.
Since the Namib sand chameleons aren't arboreal and don't have to be so lightweight, I bet their bones are harder giving them enough strength to inflict a nasty bite... to say, a cobra?