Challenges for an axion explanation of the muon g − 2 measurement