I haven't really had a hard time with it, but I'm pretty content in general and okay operating alone for long periods.
But I think a big part of keeping sane is having something to work on, and things to look forward to.
It also helps to have a certain level of curiosity, since it's so easy to...