as previously mentioned in a comment, get the codes read. In the USA places like autozone and O'Reilly will do this for free. See what it says. The fact that a bump causes it tells me its almost certainly electrical. Loose grounds or plugs are likely culprits. Its going to suck, but you'll need to start chasing wires and double checking everything until you find the cause. Could be electrical connector to the transmission.