I recently read Stephen King’s “The Girl Who Loved Tom Gordan.” It got me to think about how Stephen writes a lot of tales with the main person being alone. In addition to the above, there’s “Gerald’s Game,” “Misery” and the lovely short story “Survivor Type.”
I guess the most famous classical book where this happens is Ernest Hemminway’s “The Old Man and The Sea.”
Agatha Christie wrote one, under her ‘romance’ pen name. It was about a woman who has to spend the day alone at a desert train station. She starts examining herself for the first time in her life and realizes she’s a horrible person who has manipulated everyone in her family for years, and they all secretly hate her. But by the time she gets home, she’s talked herself back into her lifelong self-deception.