Set the studs with High temp Locktite, and use serrated flange nuts, or lock washers.
On my last day trip I developed this really rough exhaust sound.
Stopped for gas and a look-see. Two studs had backed out, and the nuts had vibrated off. WTF!
Luckily we had just passed a hardware store. 15 min later we were back at it.