SMC
It's hard (impossible?) to tell exactly why you are getting that error without knowing what line of code it occurs.
2 common reasons for Overflow errors are:
1 Division by zero.
2 Incorrectly typed variables. eg trying to store too big a value in an integer