Hi there,
From what you say it sounds like a dodgy switch, can't be sure of that from here though..
If the mechanism has partly seized and operating against resistance it may be cutting out as a safety measure, again not sure about that, if you can get it open maybe have a look at the running areas..
The relays are located under the lower dash, roughly where your right knee would be in the driving seat.