mine does this only if the oil is low ,check the easy things first ,change the oil switch ,have you got the right dip stick ,is the plastic end on the dipstick tube missing or broken (the dip stick will go down in more giving you a max reading at a lower oil level, has the sump been off and the baffel plate not refitted , then if all this fails you need to remove your sump and check that the oil pickup tube is sitting below the oil level (sometimes they can be bent upwards out of the oil a little )
every time the oil light comes on your starving the engine of oil not good at all get it sorted quick
Rob