1 Timothy 6:16 who alone is immortal and who lives in unapproachable light, whom no on has seen or can see. To him be honor and might forever. Amen.
1 Kings 8:12 Then Solomon said, "The LORD has said that he would dwell in a dark cloud;
These are different occasions for different purposes. There are more.
Lev 16:1 I appear in the cloud above the mercy seat.
1 Kings 8:13 I have indeed built a magnificent temple for you, a place for you to dwell forever."
1 Kings 8:49 then hear in heaven your dwelling place
Psalm 68:16 why gaze in envy, you rugged mountain, at the mountain where God chooses to reign, where the LORD himself will dwell forever?
Deuteronomy 33:2 He said: "The LORD came from Sinai and dawned over them from Seir; he shone forth from Mount Paran. He came with myriads of holy ones from the south, from his mountain slopes.
1 Corinthians 3:16 Do you not know that you are God’s temple and that God’s Spirit dwells in you?
Perhaps you are more concerned about the contrast of light vs darkness. According to https://answeringsceptics.wordpress.com/2014/07/03/alleged-contradictions-1timothy-616-1-kings-812-god-dwells-in-light-or-in-darkness/, darkness is not
pitch black places (hell or dungeon), but as being cloudy, smoky type of darkness
In any case, there is no contradiction.