Pedro Acosta ends Friday fastest at the Hungarian MotoGP despite a "strange" late highside, edging Marc Marquez by just 0.006s.