More education on drug overdose is needed for prisoners, a coroner has warned following the inquest of an NI man who died in a hostel just days after being released from jail.