Check engine light

I live in Arizona and I bought a 2020 ram 2500 bighorn and when I drive up north and stop to get gas the check engine light comes on this has happened twice bother times when I'm up north I'm thinking it might be an altitude issue cause when I get gas in town the light doesn't come on
Author: HENDO71