C271A1 error occurs even with a simple infinite loop

Maybe this solved thread helps you with your issue: C271A1 Error during thread - Technical Questions - Universal Robots Forum