if the issue is the body control module ..i cant really help ..
But what you can do is check all the circuits that tell it that things are closed and open.
That would be all doors and the bonnet catch, the check may involve removal over door cards ..and first checking that things are securely attached, and not physically broken, checking switches for sticking before moving onto the electrical continuity tests./
You could also plug a scanner in and check that to see if its showing codes for the fault - they recommend software called forscan that is free ..you download it to laptop or mobile ..you'll need to buy interface cable.
join the forscan forum to find out which cable and how to use.
https://forscan.org/forum/all the best.mark