The crankshaft seal failed and was dripping oil on the pulley and crankshaft sensor attracting oil and debris causing a weak signal. The wiring harness probably got damaged while replacing the valve and had live wires exposed.

Only top voted, non community-wiki answers of a minimum length are eligible