In Hadith 110, إِنَّ اللَّهَ uses إِنَّ for emphasis and makes its noun اللَّهَ accusative. Hadith 112 begins إِنَّمَا شِفَاءُ الْعِيِّ السُّؤَالُ. Here مَا is called mā kāffah: it prevents the usual grammatical government of inna.
Consequently, شِفَاءُ is nominative. In meaning, إِنَّمَا highlights or restricts the statement; this is called ḥaṣr.
The practical point is that asking a knowledgeable person is the remedy for not knowing. Grammar serves the meaning rather than becoming a separate, difficult topic.