tpu_window: Fix int16_t overflow in tpu_window calculation