Yes, there is a flakey connection, but wait, it’s not your motor, but your limit switch, the y axis limit switch. I have experienced that when limit switches cables are flexed too much during printing, eventually the copper wires within the cables will break bit by bit, and it will get to the point where your y axis limit switch will give false signals to the printer, OR it is caused by the rubbing when the wire touches another surface repeatedly, OR the inner pin connector from the connector head has lost it proper seating or the wire has desoldered from the pin connector due to the repeated flexing/movement/strain.
The best way to check for this is to connect your computer using Repetier Host, and then use manual control to move the bed y axis from one end to the other end, first to see whether it is working properly.
You can next, try to forcefully replicate the false signal, by using your hand to move the cables which are near the connection of your y axis limit switch. When you have successfully caused a false signal, you will get this in Repetier’s log, “echo:endstops hit: Y” or something. If you see this in the log, good news, you found the problem, bad news you have to either change the whole limit switch, OR you have to desolder and resolder a new set of cables for the y-axis limit switch, OR you have to check which pin connector is the culprit and change it yourself, with crimping tools and such.
After the repairs, do look to how you can prevent this from happening in the future, like keeping the wiring out of the way, or do something to prevent much flexing to the limit switch cables.
Ok summary, It is either your limit switch that is faulty, or the connector is faulty, or the wire is semi-broken. I would assume that it is the connector that is faulty, the pin, that has lost proper seating/contact with the cable head. It could be just one of them, if you can get your hands on some pin connectors, you could replace all 3 pin connectors that go into the connector head that goes into your limit switch end stop board connector header.
If your sure that it is the pin connector that is improperly seated, you can use a small flat head screwdriver to push it back in, and then find some way to tape the cable to something, so that the pin connector does not get pull out accidently again*