Be strict about when you check and respond to emails, e.g. only at the start/end of the day, and you could also try to delegate times to different types of email - many teaching ECRs find that student emails can get out of hand especially around essay deadlines; I have found it helpful to store up student emails over a couple of days and then sit down for half an hour (or more...) to deal with them