The early bikes had some sort of a problem with the lights, or perhaps the general fairing electrics, that I think they fixed with a reflash or replacement of something. A forum search might turn up more info but people were still talking about it when I bought my 2018 bike. It's a vague memory for me as it wasn't an issue for the later bikes.
Another thing that comes to mind is that sometimes weird things show up when the battery terminals are loose, which they are prone to do. Check both battery terminals and the ground wire to frame connection.