Get a code reader to find out why the light was triggered rather than blindly addressing possibilities. Some codes will only show with manufacturer code readers that the generic models will not pick up.
I recently was fighting a warning light on my VW and couldn’t pull a code. One of my brake lights burned out and I replaced both with LED bulbs thinking I would not have to touch them again. Later I found the car reads the resistance of the bulb elements and uses a generic indicator to warn you of non-working lights. I chased all kinds of possibities before trying incandescent replacements.