This has been happening for quite some time to me and my brother. When using online features, it randomly errors. This makes playing SSB3DS and ACNL online a total disaster. I'm almost guaranteed that it's not my wifi, rather something on Nintendo's part, as this even happens when in a Nintendo Zone. Plus, other devices connected to the wifi works just fine.
Any help would be appreciated.