The bonnet alarm switch is the most likely suspect, my defender and my next doors range rover have had this, ensure the alarm switch on bulkhead is straight and being pushed down when bonnet is closed, the rubber cover on the switch maybe split, mine was and I fixed it with super glue,