Kylie never turned to drugs during all the stuff with Nick and her splitting with David but does now because Max needs to take medication for adhd, it is rushed for her exit storyline
Maybe it is the fact she had medication for Max that brought back her addiction ???