The Online Safety Act is putting free speech at risk and needs significant adjustments, Elon Musk's social network X has warned.