The oven's electrical power needs to be disconnected. The oven door lock assembly has wires. If the wire harness is damaged, you should replace it. The oven door lock assembly needs to be replaced if the wiring is okay. The electronic oven control board should be replaced if the problem persists.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.