The “compensatory-reaction” hypothesis and drug use is discussed in Gleitman (1995) page 114 and Gleitman et al.(1999) page 126 and Gleitman et al. (2004) pages 131-2.

In an addict, the sight and feel of a needle (or other stimuli regularly associated with drug-induced effects) may become conditioned stimuli leading to counter-reactions against the drug, and thus larger and larger doses are needed to produce the same “high”. (The tolerance effect). But if the same dose is taken in an unfamiliar environment the compensatory reaction may not take place, leading to a drug overdose.