Which amendment from the Bill of Rights did these two laws violate?

The two laws in question are the Alien and Sedition Acts of 1798.

The Alien and Sedition Acts of 1798 violated the First Amendment of the Bill of Rights, which guarantees freedom of speech, press, assembly, and the right to petition the government.