2001 Isuzu Trooper shuts off when idiling, runs fine

my trooper shuts off when coming to a stop. it’s at a point where I have to give gas pedal and brake pedal to prevent shut off. It runs fine. Check engine light goes on and off randomly, Reduced power light has come on 5 times and trooper loses some power until I turn off and back on. I’ve taken it for 3 diagnostics and nothing found. I have not had anything done since they can’t find anything.