The sentence that is punctuated correctly is:
In 2019 eight new students enrolled in our school, but only five of them stayed.
However, it would be even clearer with a comma after "2019":
In 2019, eight new students enrolled in our school, but only five of them stayed.
That said, if we're strictly judging based on the options given, that is the most correct sentence in terms of punctuation.