I've read that it's completely normal for yorkies to sound like that sometimes. They have what's called a pharyngeal gag reflex. It has to do with the air going through their nose very fast so it sound exactly like a reverse sneeze which makes them also sound like a goose

it's usually over within minutes.