woa... give me permission to say this, that was very dumb...
always create a nand backup. no excuse.. (the first 3ds comes with a 2gb card you can even use that)
well since you said you was mjessing with TWL stuff, i have 2 ideas you can try...
first idea, as people had told, to update luma...
https://github.com/AuroraWright/Luma3DS/releases
download the 7z file, copy arm9loaderhax.bin into the root of the SD card...
hold select on boot to open luma config, select "autoboot sysnand"
make sure everything else is turned off like dev features..
if that doesn't work, since the thing happened while you was trying about DS games
follow this:
https://3ds.guide/troubleshooting
try the first part...
try to launch decrypt 9 (or hourglass, you have to hold a key at boot, i think its the start button)