Overcooking the cheese can cause cheese dips to separate/split. Pay close attention to the cheese as it melts, making sure to not overheat it and not cook it for longer than needed. You want to go low and slow to get your cheese melted while stirring occasionally to make sure the cheese melts evenly.