It's trying to add two numbers together (looking at your code you're using 16 bit signed integers) but the result is greater than the max value that can be represented by i16.
You likely want to be using a larger integer type, or if you never need the negative numbers which it seems like is the case, you can try changing i16 to u16 which has a larger max value