Some chips from food maybe loosen during cooking and stuck in the cavity of the microwave oven, they will cause spark during cooking.
Please put a bowl of water in Microwave Oven. Then power on and start to heat for five minutes. After five minutes when you see steam appears, please power off and open the door, let the microwave oven cooling down then clean the Microwave Oven with cloth.