What could go wrong when having egd done?

Rare but possible. You can have perforations of the esophagus, stomach, or intestine from a scope. These kinds of complications are rare, but do occur.