"he drank so as not to think of the pain"?
Almost exactly the same as my response, the suggested translation is not idiomatic English IMO.
He drank to ignore the pain would be the colloquial translation.
"... in order not to..." is not accepted. Should it be accepted? I'm sometimes struggling more with English than with Danish.