Sonoff Switches with Tasmota

I was wondering if anyone has a similar problem. I have a couple of the sonoff t0eu1c light switches that I flashed with Tasmota. Reason for flashing was that I was hoping the switches would be more reliable than the cloud software. So far, so good. Everything works fine except when I created the automations. I have 5 switches in my hallway where switch 1 turns the other 4 on when on is pressed and switch 1 off and the 4 switches on off… I have all 5 switches configured with the same setting. However, sometimes they go crazy and switch back and forth between on and off for a few minutes.

Is there a solution, when I turn on one of the 5 switches, they all go on and vica versa and that from each light switch?

could it be related that some of the switches are connected to different wifi’s (normal wifi and guest wifi from the same mesh satellites)

Any help will be appreciated