did you format the sysnand or emu nand and will i have to install all my cia again?"I went ahead and formatted, linked NNID, and restored NAND. It worked! My saves seem to be still there and I can access eshop on sysNAND!
Manually fixed error 022-2634"
Source: https://www.reddit.com/r/3DS/comments/3pccqh/anyone_have_experience_fixing_nnid_error_0222634/
okay will doThat was not really my case. I just Google'd the error code you posted and came across that. I only posted it for your references.
Try formatting your system's memory first with your micro-SD card unmounted.