Why my clio classic 2005 série suddenly turns off?

My Renault Clio Classic 2005 série sometimes turns off on its own when I am driving, so I have to unplug a cable (check first and second picture below) which is attached to the electrical unit and plug it again so it can start. What should I do? I had my key capturer replaced ( check third and fourth picture below) but it seems like it didn't work. Any solutions?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Especially when I drive for a little long time

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0