DAEWOO KALOS CRANKSHAFT PROBLEM

2004 Daewoo Kalos

Electrical problem
2004 Daewoo Kalos 4 cyl Front Wheel Drive Manual

my car wors for about 10, 20, 30 minutes and stops, when I connect my scan machine, the code p0351 and p0352 appears.I already change ignition coil and crankshaft sensor. But still the same after he stops I have to wait for the nest day, then he works again.I already took off all the wiring and I cant find nothing damaged. Can you help me