Alex Marquez and Johann Zarco sustained injuries in separate crashes that caused the Catalan Grand Prix to be red-flagged twice.