Hello people, I came across an error, "The evaluation of attribute rules is cyclic or exceeds maximum cascading level." during editing a feature with an attribute rule made by arcade expression.

As I am new to Arcade, I referenced a sample expression from github to set up the rules that divides a line into two features. The original code works fine that uses a point feature to divide a line at the intersection with the line feature. But I used a start point of a line feature instead of a point feature for my purpose. After I made the simple change in the code, edit works sometimes but get above error sometime randomly. For example, even if I get the error, if I change a place to draw a line feature, then it works without the error.
I have been searching any clue regarding this error but have not had any luck yet. Any help would be much appreciated. Thanks in advance!