How about not giving the parents the teachers' personal phone number for starters. Every and all contact should be through a school email or chat app.
And any email from a parent harassing or threatening a teacher gets escalated to the principal.
If it continues, the pupil is expelled from the school