It's literally impossible to gain weight from drinking diet soda. It doesn't have food energy. It can't break thermodynamics. It can only be explained by other factors like people over compensating with other calorie consumption.
What is known is that suddenly cutting caffeine after large regular intake will cause weight gain.