Thats a bit of an odd one without any easy answer.
Could be an earth fault or plugs ,coil pack , egr the list goes on....
If it hasnt been serviced for a while that might help. Check all the wiring for damage or short.
Its a bit of a process of elimination.