Hen House Project - LCD troubles

Hello makers,

I'am currently working on a personal project : an automated hen house. The whole project is based on an Arduino Uno and a linear actuator controlled by L298 board to open/close the door. I also use an basic LCD screen (16x2), an RTC and some switch and potar (cf PROJECT).

But I am facing a problem : when the actuator comes into "end of run" and thus activates built-in "end of run" switch, some weird characters appear sometimes on my LCD screen (cf PBM).

I suppose that is du to a current peak when motor stop to spin. Indeed grounds from 12V battery and Arduino's are linked. I can understand that this appends when motor start to spin but I don't understand why it appends when the motor stop.
I already try some basic RC filtering on LCD power pin (C=100uF) but it doesn't fix my problem (cf WIRING). I have also added a capacitor between the power pins of the actuator (using 12V).

Also something that i don't understand : when i run the actuator for a short length until "end of course" this problem doesn't appears. It only does for long run (>5cm) that my screen goes wrong. However, if I use external switch instead of "built-in switch", i don't have this problem.

Any idea to avoid those weird characters is welcome.

Thanks

Matt