Solution: To fix this issue, turn off the light and wait for the bulb to cool down. Once it has cooled, fully screw the bulb into the socket. A loosely connected bulb can flicker, so this should solve the issue. If it persists, it was not just a loose bulb issue.