Just unplug the hood switch (on the front corner of the drivers side cabin filter) and I'll bet the problem goes away. If so you can replace the switch or just leave it unplugged. That's the source of most false alarm issues.
chiefwej 2003 540i ///m-tech 6-speed
Black Sapphire Metallic w/gray