I'm not a big believer in the caster/martial divide, but there's a much simpler solution than changing those classes. If a person thinks there's an issue then just ban bards, clerics, druids, sorcerers, and wizards from the table. Allow artificers.
This leaves 8 classes to play (artificer, barbarian, fighter, monk, paladin, ranger, rogue, and warlock) and moves the spellcaster roles to artificer, paladin, ranger, warlock, and possibly arcane trickster or eldritch knight. That reduces the number of slots, slows down the spell progression, and removes high level problematic spells.
It's effective and practically zero effort. ;-)
This leaves 8 classes to play (artificer, barbarian, fighter, monk, paladin, ranger, rogue, and warlock) and moves the spellcaster roles to artificer, paladin, ranger, warlock, and possibly arcane trickster or eldritch knight. That reduces the number of slots, slows down the spell progression, and removes high level problematic spells.
It's effective and practically zero effort. ;-)