Math struggles in kids may stem from brains that have a harder time learning from mistakes—not just understanding numbers.