Tricking Oven to ignore intermittent door latch fault
If I am not mistaken there is a microswitch visible in the picture at the top, if that has gone bad (which is likely) then specifically that microswitch can be easily bought and replaced - they are a standard component which are used in many applications and are widely available.

If you must bypass it (not recommended) then you only need to short the relevant terminals.