Do u not have a code reader? It could be a million different things.
Have u tried resetting the ECU yet to see if that fixes the issue?
Unplug the negative terminal, turn on your headlights (to bleed the residual power.) leave it sit like that for about 15min while the power bleeds out, then reconnect the terminal and see if the problem goes away.
If it does, just drive it normally for a while to see if it does it again.
This sounds electrical/computer to me. My guess is you are jarring something loose. Make sure the terminals are tight while your under the hood.
Either that or there is a loose ground somewhere feeding the ecu.