2024.8.4 crashes if you use a repeat option in script

2024.8.4 crashes if you use a repeat option in script. Been using the same script for almost 2 years and the last few updates on core it broke if I disable the repeat option in my script everything is fine. I use scripts for casting to my Chromecast. Everything normally works fine but repeat option and then set how many times to repeat is not working it crashes it. Then even if you use restart script that does not work neither at the end of a script. Also if you try to run another script at the end of one script that is not working no longer.