21-year-old Chauncey Taylor had secured a place at University, which he was unable to take due to the pandemic.
He was discovered at the flat in Wales with 97 wraps of heroin, and his home in Epsom had scales and empty bags.
He pleaded guilty, but said he was acting under duress due to his cannabis debt and threats made to him and his family.