Welcome to the forum. Seems like you covered the basics. Only thing I can think is the batteries you are using are 50mm exact and the light prefers longer cells. Mode changing can occur on bumps due to soft springs allow the cell to move enough to break contact with the driver. Does the driver side have a spring or does it have a solid contact button? If a button it's a common issue. With springs on each ends it shouldn't happen unless they are too short, too soft, or have lost their tension.