The sentence that is punctuated correctly is: "In 2019 eight new students enrolled in our school, but only five of them stayed."
This sentence correctly uses a comma before the conjunction "but" to separate two independent clauses.
The other sentences either have redundancy or punctuation issues (e.g., missing commas).