jm_2094 wrote:Do you think changing my car battery could affect the locking system of my car
No, I doubt it.
It sounds like a fault in the switch in the driver door, or the wiring coming out of that door.
If you're not handy with a multimeter yourself, you may have to take it to an auto electrician.