You can cast Daring Discovery with no targets and just discover 4. However, if you choose any targets, and all of those targets are illegal by the time Daring Discovery tries to resolve, it won't resolve and none of its effects will happen. You won't discover 4. As long as one target remains legal, any legal targets won't be able to block this turn, any illegal targets won't be affected, and you'll discover 4.
Daring Discovery
If you discover an adventurer card, split card, or modal double-faced card, you might be able to cast that card with either set of characteristics depending on the effect's discover value. For example, if you discover 4 and reveal Galvanic Giant (an adventurer card from Wilds of Eldraine with a mana value of 4), you could cast Galvanic Giant, but not Storm Reading (its Adventure, which has a mana value of 7). If you discover 7 and reveal Galvanic Giant, you could cast either Galvanic Giant or Storm Reading.
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Michele Giorgi
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
