Look at https://package.elm-lang.org/packages/micahhahn/elm-safe-recursion/latest/, and try to improve compiler speed. This relates also to https://package.elm-lang.org/packages/jfmengels/elm-review-performance/latest/NoUnoptimizedRecursion (as mentioned on the documentation of the package