The sentence that contains an incorrect pronoun shift is:
"I thought I saw a dog bury their bone under the tree."
The issue arises because "a dog" is singular, but the pronoun "their" is plural. A more correct way to phrase it could be "I thought I saw a dog bury its bone under the tree."