Elixir of Immortality, crash with bad_parameters when used

In one of my games I encountered a crash when activating Elixir of Immortality. There are just five cards in my graveyard (with two duplicates), so it's reasonable to assume it wouldn't be too hard to pinpoint the culprit.
Savegame and dump.txt attached.
Savegame and dump.txt attached.