Nothing "Just comes out of nowhere" There is always a reason. As mentioned dirty contacts are most likely the problem. Not only check the power side of thing, check the grounds.
On the sockets the bulbs go in, they can stretch open and le the bulb vibrate in the socket, this can allow the contact points to burn as the power arcs across the gap. Clean and tighten every connection you can.
I might suggest you do this not only on the turn signals but the entire bike. Start at one end and work to the other. Switches, connectors fuses. Everything.
Leo