Underdark Beholder’s second ability isn’t a damage prevention effect. It can replace damage that can’t be prevented.

Artwork
Loading artwork…
Underdark Beholder
Mystery Booster Playtest Cards 2021 · #49 · EN
Nonfoil—Foil—
Card rules
Underdark Beholder enters the battlefield with ten eyestalk counters on it.
If Underdark Beholder would be dealt damage, remove that many eyestalk counters from it instead. If you can't, sacrifice it.
Whenever Underdark Beholder attacks, reveal cards from the top of your library until you reveal an instant, sorcery, or enchantment card with converted mana cost less than the number of eyestalk counters on Underdark Beholder. You may cast it without paying its mana cost. Shuffle your library.
6/6
Rare · Illustrated by Chris Tulach
Format legality
Alchemy Not Legal
Brawl Not Legal
Commander Not Legal
Competitive Brawl Not Legal
Duel Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Legacy Not Legal
Modern Not Legal
Oathbreaker Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Vintage Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If Underdark Beholder leaves the battlefield while its last ability is on the stack, use the number of eyestalk counters it had before it left to determine what converted mana cost to look for.
If a spell has X in its mana cost, you must choose 0 as the value of X when casting it without paying its mana cost.
You must cast the revealed card while Underdark Beholder’s triggered ability is resolving. You can’t cast it later in the turn.
If you cast a card “without paying its mana cost,” you can’t choose to cast it for any alternative costs. You can, however, pay additional costs. If the card has any mandatory additional costs, such as that of Tormenting Voice, you must pay those to cast the card.