You need to handle this logic before insert. Adderror won't rollback the records for you in an after context.