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 can be seen as a shift from singular to plural. A more appropriate pronoun to maintain singularity would be "its," making it: "I thought I saw a dog bury its bone under the tree."