About 12 months.
Under the World Health Organization's ICD-11, the pattern of impaired control and disruption normally has to be present for at least a year before it counts as gaming disorder, though that window can be shorter when symptoms are severe. A heavy gaming phase is not the same as a disorder.