Fixing circular references

Sometimes I have circular references in my code. Godot just provides a cryptic error which is not related to the actual spot where the circular reference is taking place. Hence, it does not allow me to introspect the actual issue. This means I have to do trial and error, see what changes I’ve made, move these changes to different files. I don’t understand anything though. I would like to do this better and save my time. There are a lot of issues on circular references but none of the solutions really make sense for my large, complex project (where I cannot track manually how these circular references occur).

How do I start here?