There are definitely offensive checks / counters to Magearna.
Darmanitan works, as do some other offensive fire types. I'm going to focus on Darmanitan because it a) resists Fairy (and Grass) and b) is physical, like the best Magearna counters will be.
252 Atk Choice Band Darmanitan V-create vs. 248 HP / 252+ Def Magearna: 608-716 (167.4 - 197.2%) -- guaranteed OHKO
+1 252+ SpA Life Orb Magearna Draining Kiss vs. 0 HP / 4 SpD Darmanitan: 140-165 (39.8 - 47%) -- guaranteed 2HKO after Stealth Rock
+6 252+ SpA Magearna Draining Kiss vs. 0 HP / 4 SpD Darmanitan: 288-339 (82 - 96.5%) -- guaranteed 2HKO (LO KOs obviously, but Darmanitan can prevent that and honestly if you let most sweepers get to +6 you're gonna lose)
Note that Darmanitan is a check IF and only if Magearna run Hidden Power Ground (or you know Rock or Water but like it's not going to run those).
252+ SpA Life Orb Magearna Hidden Power Ground vs. 0 HP / 4 SpD Darmanitan: 302-356 (86 - 101.4%) -- guaranteed OHKO after Stealth Rock
The most notable other Fire type than functions basically the same as Darmanitan and is actually way better is Torkoaltran. While it may not trap like GolemTran it isn't nearly as vulnerable to its boosting.
252+ SpA Choice Specs Heatran Fire Blast vs. +1 248 HP / 8 SpD Magearna in Sun: 522-614 (143.8 - 169.1%) -- guaranteed OHKO
252+ SpA Choice Specs Heatran Fire Blast vs. +2 248 HP / 8 SpD Magearna in Sun: 390-462 (107.4 - 127.2%) -- guaranteed OHKO
Eruption does more but obviously you can be chipped out of that BUT
252+ SpA Choice Specs Heatran Eruption (150 BP) vs. +3 248 HP / 8 SpD Magearna in Sun: 428-506 (117.9 - 139.3%) -- guaranteed OHKO
not even gonna bother calcing Heatran defensively. It dies to HP Ground and takes almost nothing from everything else.
Chandlure can do the exact same thing
SOME Landorus-Therian sets can counter Magearna. You specifically need a boost to Earthquake or an AV ig
252 Atk Guts Landorus-Therian Earthquake vs. 248 HP / 252+ Def Magearna: 348-410 (95.8 - 112.9%) -- 68.8% chance to OHKO. I don't recommend this route.
Excadrill can do something similar
252 Atk Choice Band Tough Claws Excadrill Drill Run vs. 248 HP / 252+ Def Magearna: 342-404 (94.2 - 111.2%) -- 62.5% chance to OHKO
+1 252+ SpA Life Orb Magearna Giga Drain vs. 4 HP / 0 SpD Excadrill: 250-294 (69 - 81.2%) -- guaranteed 2HKO after Stealth Rock
Note that I've been assuming the worst for EVs here. AKA Magearna is both physically defensive and specially offensive. This is impossible. It's only particularly relevant with Lando-T and Excadrill, as if Mage runs less than full bulk it dies and
+1 252+ SpA Life Orb Magearna Giga Drain vs. 4 HP / 0 SpD Excadrill: 250-294 (69 - 81.2%) -- guaranteed 2HKO after Stealth Rock
+1 0 SpA Magearna Giga Drain vs. 4 HP / 0 SpD Excadrill: 144-170 (39.7 - 46.9%) -- guaranteed 3HKO after Stealth Rock
252 Atk Guts Landorus-Therian Earthquake vs. 248 HP / 0 Def Magearna: 474-558 (130.5 - 153.7%) -- guaranteed OHKO
+1 0 SpA Magearna Draining Kiss vs. 0 HP / 0 SpD Landorus-Therian: 123-145 (38.5 - 45.4%) -- guaranteed 3HKO after burn damage (any chip, including two turns of past burn or rocks turns this into a chance for a 2hko)
There are other checks and counters.
252 SpA Life Orb Moltres Fire Blast vs. +1 248 HP / 8 SpD Magearna: 268-320 (73.8 - 88.1%) -- guaranteed 2HKO after Leftovers recovery (this is Magic Guard)
252+ Atk Choice Band Stakataka Gyro Ball (150 BP) vs. 248 HP / 0 Def Magearna: 360-424 (99.1 - 116.8%) -- 93.8% chance to OHKO after Leftovers recovery (Bronzong set, obv more offensive sets do more but HP Ground ;-;)
+1 252+ SpA Life Orb Magearna Giga Drain vs. 252 HP / 4 SpD Stakataka: 173-204 (53 - 62.5%) -- guaranteed 2HKO
Essentially: I think you should look around a bit more before claiming Magearna lacks counters. Yes it is a potent threat versus offensive teams, and yes it can find it easy to sweep versus unprepared teams, especially since it is basically impossible to chip. But many top tier threats can do that. I'm sure there are more threats I did not cover that can offensively answer Mage. I don't believe anything I mentioned is unviable or unused or only used for Magearna. Mage being able to switch out of them is just part of Pokemon; Offensive teams will inherently limit switch-in opportunities, and smart play and building will severely limit set-up opportunities.
The main thing I noticed was that all of the Pokemon you mentioned were special. I don't think looking for special mons to break or threaten Magearna as your primary source way of beating it is great, as it boosts its SpD, often runs AV on other sets, and is naturally very specially bulky (well its bulky on both ends).
Let me know if you'd like me to clarify anything on any of these points :D