Theres no contradiction here.
bcs scripture distinguish between "God's essence" (his full divine glory) [1 Timothy 6:16; John 1:18; 1 John 4:12], and "God's manifestations" (theophanies, visions, appearances, or the incarnate Christ), through which God reveals Himself without exposing His full glory
i'll give u a simple analogy.
if you stare directly at the sun in full brightness it'll hurt your eyes or wouldnt be stared at, but when using the reflection of water to observe the sun you could see it just fine
its the same as this. God revealed Himself in forms humans could endure, while His full divine essence remains beyond human sight. Those passages are just addressing different kinds of "seeing God" and they support that distinction rather than contradicting each other