It really depends on the university. If you're worried you might fail second year you'd probably be best just talking to your academic supervisor, but most universities should have advice about transferring/failing second year somewhere on their website.