Automatic door locks locking and locking by themselves

My Chevy Tahoe automatic Door locks are locking and unlocking by themselves even while I am driving also most recently my main light inside is started to flicker any suggestions on what it could be would be greatly appreciated, thanks

Sounds like one of the door ajar switches is malfunctioning, this will cause the courtesy light to illuminate and for the door to lock again when the door is seen to close.

While sitting in the vehicle, engine running, push each door out to see if any of them cause the dome lamp to illuminate.

We have done that and checked all doors , and dome light still flickers, my other worry is will it drain the battery if it does it overnight or if am away from the car for lor long periods?

You may be looking at a faulty BCM.

Tester