If you can't exile enough cards to meet or exceed the required mana value, you can't choose to collect evidence at all.

Artwork
Loading artwork…
Vitu-Ghazi Inspector
Murders at Karlov Manor · #183 · EN
Nonfoil—Foil—
Card rules
As an additional cost to cast this spell, you may collect evidence 6. (Exile cards with total mana value 6 or greater from your graveyard.)
Reach
When this creature enters, if evidence was collected, put a +1/+1 counter on target creature and you gain 2 life.
1/3
Common · Illustrated by Borja Pindado
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Once you've announced that you're casting a spell, players can't take actions until you've finished doing so. Notably, opponents can't try to remove cards from your graveyard to stop you from collecting evidence.
If the target creature is an illegal target as Vitu-Ghazi Inspector's triggered ability tries to resolve, it won't resolve and none of its effects will happen. You won't gain life.