I'll again say it's how you play the game. If you want to solve the problem, it can be done easily.
Just make anti, wild, suppressive, disruptive, and absorbing magic effects COMMON in the game. So, simply put, you would tell a player of a magic using character to "just go sit in the corner, you can't play for a bit" every couple minutes.
Now sure a lot of DMs feel bad saying that. And many players feel bad sitting in the corner. BUT, once you get past all the bad feelings: The PROBLEM is SOLVED.
Sure everyone does not "like", but it works 100% of the time.
And then people stop playing casters altogether. Congratulations, you basically banned them without actually being honest and saying so.
People play D&D to, and I know this is hard to grasp for some people, play the game and have fun. Being told "yeah, you can't actually do anything, just sit there and watch" is something that should happen
less often, not
more often. Unfortunately, it's baked into the game on so many levels it's not funny, from making your single attack per turn at low levels and whiffing, to casting a save or nothing spell and the DM rolling a 18 on the die, to crowd control effects like paralysis.
If the spells are problematic, deal with the spells directly by banning or adjusting them. If you're ok with spells and feel the non-casters are lacking, off them "secret grandmaster training" or let them acquire a boon by eating the heart of a legendary beast.
Saying "you will do nothing 25% of the time because I say so" is just punishing people for wanting to have fun. How DM's who do this sort of thing still have players astounds me.
Now I know, having said that, someone is going to jump in and say "this is how I have run my games for X years, and they have no complaints". Maybe your game is just that good otherwise. Maybe your players are held captive in your basement and they have developed Stockholm Syndrome. I don't know. But I think all this talk of "magic nullification" just reeks of old school mean-spirited DMing, where the players aren't your friends, but your victims.
I've repeated these wise words many times, and I'll do it again. You shouldn't balance mechanics by making them obnoxious to deal with.