Ulorian - Agent of Chaos
Legend
The problem I see with that is you now have a feat tax whose purpose is to bring spellcasters back to the power level that they have in the base game. A power level that the base game ostensibly balances against non-spellcasters.I was thinking that could be reserved for subclasses and feats
In other words, spellcasters under this system must either start a feat shy of non-spellcasters or take a particular subclass in order to maintain their 'effectiveness/power level' as compared to non-spellcasters.
What I liked about @TheHand 's suggestion is that it didn't reduce the base capabilities of spellcasters; it instead added an option to gain a boon in exchange for a penalty.
Another option you might consider is to look at a system where spellcasting dangers like this are baked in. WFRP springs to mind. This way, you don't have to worry about trying to balance D&D against the flavour you're trying to inject. It does involve switching systems, which might not be appealing to you though.