Dualities from Swampland principles