It should stay put on its own, but for a more permanent solution, you can adhere the pipe insulation to the studs by using the self-sealing adhesive ... the noodle with duct tape, then wrap ...
Some results have been hidden because they may be inaccessible to you