10 gallons is way too small for one axolotl, let alone two. The small size could be why they’re snapping at each other. That, or you’re not feeding them enough.
Either way, the tank is way too small. Axolotls can grow up to a foot long, even more at times, so yours are gonna be squished in that tank real fast. And with the amount of bio load, you’ll have to be doing near daily water changes, otherwise they’re swimming in their own poop; the risk of infections and burns is dangerous.
I’d recommend AT LEAST a 40gal breeder tank for two axolotls, however for mine I chose a 55gal for ease. If I were you, I’d go with the 55gal just because of the amount of bio load your axies will produce.
If you live in the states, Petco tends to have really good tank sales, like 50% off. That’s how I got mine.
For future advice, I’d check out the axolotl discord—if you have discord, of course. It’s quick, and easy to get responses. They’ll help you out big time.