I don’t how it is for you but the longest I have ever run is three hours and I don’t remember feeling bored nor thinking about anything apart from the running. If your effort is intense you don’t really have space to think.
Plenty of people have run for 24 hours, or spent far longer in far more solitary conditions. You could ask any of them. Sorokin "just" ran 5% faster.