How long are you fasting, friend?
If you’re doing something like 8:16 you don’t need to even think about electrolytes really. Beyond a day, you may want them. Some OMAD beginners feel funky and salt can help. Personally, I dump a take-out salt packet on my hand and shoot it followed by water to wash it down. You can mix an electrolyte drink with the magnesium etc or buy one if you’re doing longer fasts.
I’m not a doctor but I don’t see how salt can dissolve your stomach lining as you have literal acid in your stomach. The stomach lining is tough. Just drink some zero Gatorade or buy some electrolyte mix packets.