Can any one help?

Polaris msx110 was rolled over now the rpm is 6700 max and it shuts off every 5-10 minutes but cranks right up and the check engine light blinks 10 times on a start