Error Classification of Large Language Models on Math Word Problems: A Dynamically Adaptive Framework