It's a WCAG accessibility requirement (2.2.2):
For any moving, blinking or scrolling information that (1) starts
automatically, (2) lasts more than five seconds, and (3) is presented
in parallel with other content, there is a mechanism for the user to
pause, stop, or hide it unless the movement, blinking, or scrolling is
part of an activity where it is ...
If you're using labeled switches, one option would be to change the label of the master switch to reflect the state of the child switches. Sounds odd, but it works in some cases. Example: Adobe Fonts uses this design pattern to install fonts.
Caveat 1: May seem odd in some contexts.
Caveat 2: The example above needs styling or some layout adjustments to ...