This kind of response by lab animals to stressors in their environment reminds me of the "Rat Park"[1] experiment, in which rats who were stressed out from being kept isolated in small cages (rats are social animals) had a tendency to become addicted to morphine, but those who lived in a pleasant environment did not.
[1] https://en.wikipedia.org/wiki/Rat_park