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)
EDIT: Mustangman beat me to it… lol