Machado is nearly hit in the head after spiking Pedrioa