Maria Sharapova suffered her earliest tennis exit at the prestigious Miami Open in 12 years, losing to Daria Gavrilova in the second round.