Back in the day when I had a 2DS and this used to happen, I would blow in to the game card slot.
open