Graham Swift said this quote

If you can't stand your own company alone in a room for long hours, or, when it gets tough, the feeling of being in a locked cell, or, when it gets tougher still, the vague feeling of being buried alive--then don't be a writer.