I think salt doesn’t cause of hair loss but it can make your hair more tangled. If you want to know how much salt must be added in your formula for increasing viscosity, you can trial with salt curve method (optimum dosage for salt).
In my formula (SLES based), i just need 0.10-1.00% of salt concentration to get high viscosity about 7.000-10.000 cps