Hi, mine is like a pretty minor affliction (worst case, it could cause just a headache) but it’s under the same one that’s way extreme, called Photosensitivity epilepsy.
Usually the “Warning: This game may contain flashing lights” message is used to warn people who have it.
On ways to make the content itself accessible, I have only seen one example of this, in the game Subnautica, there you can turn on a checkbox and the flashing lights will appear in veeeeeeery slooooow motion. Helped a ton when I played it.