In my case the fault came from the driver door lock having a faulty contact. I noticed while driving the doors would randomly lock and unlock. Was able to solve it following a YouTube video that explains how to clean the contacts, or you can replace the components for new but either way you need to disassemble the door panel and pull the lock mechanism.