If the light is flashing and not on steady, that usually means the problem is intermittent, which could be a dirty fuel injector, or shorted coil, and or spark jump from coil pack or wire. Make sure when changing plugs that us use the dielectric grease as directed.
Intake gasket would...