You have nested IF statements beyond the maximum of 254 levels.
Change your program so you do not have a nest of more than 254 conditions.