something you did was very wrong. you need to find it out by yourself.
Betta needs low and neutral pH. Let me tell you this. I had two male betta lives in 10 gallon (separate times) with Cory, shrimp, snail, lots of plants, some female betta, they all live well. I never tested my water but...