My best guess without seeing a pic would be gnats. They love to bite the inside of their ears and they look like tiny fly like bugs. Our mule seemed to have the most trouble with them. A fly mask with ears
should help a lot. Otherwise a good fly spray, spray on a cloth, so it's damp not wet, and gently wipe the inside of the ear, the "cup" part of the ear, not down inside the ear canal. Test a small spot first in case of a reaction.
Donkey Fly Mask link
Edited to add; don't clip the inside of your donkey's ears, all that hair helps protect the inside of the ears.