So... I was really dumb. I was trying to open up some space in my SD card by deleting some stuff (3DS native apps, like the camera, Miiverse, sound app, notifications, etc.).
But then I realized much later that I wasn't deleting stuff from the SD card, but the SYSNAND. I thought it was ok, but...