If you only have one card in your library as Gollum, Scheming Guide's ability resolves, you'll look at that card, put it back on top of your library, and then continue with the ability as normal.

Artwork
Loading artwork…
Gollum, Scheming Guide
The Lord of the Rings: Tales of Middle-earth · #292 · EN
Nonfoil—Foil—
Card rules
Whenever Gollum attacks, look at the top two cards of your library, put them back in any order, then choose land or nonland. An opponent guesses whether the top card of your library is the chosen kind. Reveal that card. If they guessed right, remove Gollum from combat. Otherwise, you draw a card and Gollum can't be blocked this turn.
2/1
Rare · Illustrated by Dmitry Burmak
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If you have no cards in your library as Gollum, Scheming Guide's ability resolves, your opponent's guess will not be right no matter what they guess. That means you'll draw a card, or more accurately, attempt to draw a card from your empty library and therefore (usually) lose the game.
You reveal the card even if your opponent guessed correctly.