The sentence that contains an incorrect pronoun shift is: "I thought I saw a dog bury their bone under the tree."
The pronoun "their" is used for a singular antecedent ("a dog"), which is grammatically inconsistent, as "dog" typically takes a singular pronoun ("its"). A correct version might be: "I thought I saw a dog bury its bone under the tree."