Car runs great for several minutes, then bucks and stalls. on 2001 Hyundai Sonata

Starts after several minutes. May or may not cut out again for several miles/minutes. Replaced CKP sensor and timing belt, then CMP code. Replaced CMP sensor. Car doing the same thing. Had some sensor replaced in A/T several years ago for same problem, ditto alternator about 3 years ago and ECM rebuilt couple years ago.

Asked by for the 2001 Hyundai Sonata