I used this method to upgrade the microSD card in my Switch and it worked like a charm. I will note, though, you’ll want to transfer your screenshots and videos to the device’s storage and delete them from the microSD card first. Otherwise you’ll run into trouble when trying to take save screenshots and video to the new microSD card.
➝ Source: flynsarmy.com