I would start with the basics.
1. Air in fuel, leaking/loose pipes, mine even suffered from a porous diesel filter that let air in overnight.
2. D22's are well known for the immobiliser codes from the key to the receiver dropping out for NO apparent reason, more likely after a rebuild or period of no usage.
I tried it. Unfortunately, it doesn't work.Have you tried a ecu reset?
Just disconnect the battery and switch the ignition on ( while battery disconnected to drain the residual power)
Then hook back up and try it!
It's a free test so worth trying!