If the stud goes into the water jacket, it will require some type of thread sealer on it, otherwise it will leak coolant. Your best bet would likely be a heli-coil thread repair with sealer also on the outside of the thread insert, assuming there is enough material around the hole to allow drilling and tapping for the insert. On some engines, some studs are too close to the liner counterbore, although from your pictures there may be room. But first, try the new stud as far down as there are threads and if it is a blind hole, use a bottoming tap and thread right to the bottom of the hole to try and gain another thread or two. Some studs use a tapered end, so you may want to remove the tapered portion because the threads are not full threads and will not fully engage the threads in the block and you want as much thread contact as possible provided the stud is long enough overall. Start the thread clean-up with a taper tap and then after, change to a bottoming tap. Good luck