If it’s coming undone that easily every time, I think you should just buy a whole new tank valve. A dab of locktite could be a good idea. Try the plumbers/teflon tape, but I’d be concerned about a piece coming off and restricting airflow (wouldn’t that be a case for Murphy’s Law).