Pedro Acosta was embroiled in a fight with Marc Marquez until the Ducati rider crashed from the lead.