P0335 is for CrankShaft Postion Sensor

you may have a bad sensor, replace it if defective

visually check the sensor for chipping.

check resistance between the two pins.
resistance: approximately 166-204 OHMs at (68F Degress)