[TIMOB-14261] Changed infinite loop warnings to errors