Conditions for Setting the DTC
WARNING: This page is about a different car, the 2020 Buick Regal and 2019 Buick Regal. However, it is still accessible from the selected car via links, so may be relevant.
P0335
Crankshaft Position Sensor = No Signal - For greater than 4 s
P0336
Crankshaft Position Sensor = Signal synchronization lost 10 times within 10 s.