Cheap fix first, try electrical taping your coilpacks, the spark might be arcing.
Does it happen even when cold, or only when the car is at operating temperature (10+ mins of driving), if it only does it while warm then you might have a faulty ignitor module (silver thing on the cam valley cover, always work fine when cold)