Accursed Wish

There is always a price for power.
You speak aloud, demanding a boon from one of the darkest planes. You instantly replicate the effects of any spell of 1st level with a casting time of 1 action or bonus action that deals damage, or any cantrip from any spell list. Each time you cast this spell, roll a d20. If the result is 1, you are struck by an unholy force, reducing you to 0 hit points and causing you to fail your first and second death saving throws immediately after the spell is cast. If you are struck down a second time due to this spell before you finish a long rest, you die and cannot be resurrected by a spell cast using a spell slot lower than 8th level.

At Higher Levels: When you cast this spell using a spell slot of 3rd level, you can replicate a spell of 2nd level or lower, and the threshold for being struck down increases to a result of 2 or lower. When you cast this spell using a spell slot of 4th level, you can replicate a spell of 3nd level or lower, and the threshold for being struck down increases to a result of 3 or lower. This pattern continues until the spell is cast using a slot of 7th or higher level, where no additional effect is gained and the threshold is not increased.