Some of them are programmable to be set to flash and do other things if you want. If you hardwired them and accidentally set the function to flashing on the first in the series it would probably effect the others.
Now if they are flashing on and off at random it is probably a bad transformer or connection somewhere. Or the voltage to them is incorrect for some other reason.
If an electrician wired them what does he/she say about the problem?