Trying to implement randomized animation with sections

Godot Version

4.5.1

Question

How do I replay specific animation sections while also getting rid of my signal error?

Hello! I am pretty new to coding and currently trying to set up an idle animation that switches to one of two randomly selected sections and then switches back to the “original” section while also keeping looping active.

So the idea is that the first section loops for 5 seconds, then randomly switches over to one of the other two who loop for 3 seconds and then that selected one goes back, starting the process all over.

I have kinda succeeded in implementing this by using two near identical timer functions that then connect to the corresponding animation function:

And right now I add the timer ass a child in the enter function and make sure it stops at the exit

Now like I said, this does work but the problem I’m encountering is that the debugger throws out constant errors about the way the timer is added as a child and also how the signal connects to the function:

I tried adding a disconnect function of course but no matter where I try to implement it, it seems to only cause further problems.
Does somebody have an idea how I could solve this more elegantly?