You oversalted the water.
Seawater is incredibly salty. 35g in one liter. Or 3.5%.
For pasta water, the ideal amount is around 10g per liter, or 1%.
Also keep in mind the ratio is 1:10:100 for salt, pasta and water. Every liter of water needs 10g salt and is good for 100g pasta. So if you're cooking a half kilo pack, you need a 5L pot, filled to the 5L mark, and you should add 50g salt.
By the sound of it, you used 3-4x that much.