4 years altogether starting from the date the student email was verified and used to subscribe Apple Music as written on the student offer page.
The last sentence means when the student email account is no longer reachable, the subscription will be terminated on the next billing date which is charged monthly.