In your first of the five photos, roughly to the right of your red dipstick and underneath the large turbo hose is the injector pump with the four metal injector pipes that go under the black plastic cam cover, if you find that just forward of the pipes on the pump will be a metal cover with security bolts and the immobiliser is under that.
On the photo I posted of an old Sofim engine it is in the position I described but on this engine there is no immobilser just the fuel shut off solenoid if you follow the red wire with the bared end it leads to it.
Basically under the security cover is a circuit board and a wire leading to the fuel cut off solenoid, generally once that solenoid is activated fuel is allowed into the high pressure pump and engine should start.
Your problem is getting to it.
Even with the correct code it may not start if that circuit board is faulty. So bypassing may be an answer to getting it running again.
There are several other posts on this subject as you are not the first.