A vet has urged dog owners against making a common mistake with their dogs that could cause them to suffer from separation anxiety.