This is a good recommendation. I just thought I'd add a couple links on the topic I've recently been looking at, since I've been thinking about this for the game I'm working on too:
https://caniplaythat.com/2020/12/09/its-next-gen-and-flashing-effects-are-still-...
https://developer.mozilla.org/en-US/docs/Web/Accessibility/Seizure_disorders