Is it just the flap only thats opening and closing?
Its not trying to dispense the ice as well is it?
Ok as this is a full electronic appliance and its not dispensing the ice then its a control board. Now theres 2 boards in there you have the one on the freezer door and one on the top which is the main power board.
The board is sending a feed to the flap to keep it opening and closing all the time.
Now its more then likely the top power board thats the fault as this is the one the controls the flap as the one on the door is just a selector which tells the main board what to do.
Im afraid this is looking like the power board is the fault here. As if it was the switch for the ice then you will find it will be dispensing the ice rather then just opening and closing the flap.
Sorry its not looking like good news here.