Reread Dave’s post: Oops, maybe Nevada’s post!
Did you ever change the spark plugs and coils?? You never did post any codes, check them and post them here…
Nevada posted this…
Likely an intermittent coil failure, those cars have a known coil problem:
16-01-003-1 Hyundai Technical Service Bulletin (tsbsearch.com)