Assume variable pdfAttachment contain array of loaded attached file.
if (pdfAttachment.length > 0) {
let isAttachedSizeExceed = pdfAttachment.some(object => parseFloat(object.size) > 10485760);
if (isAttachedSizeExceed === true) {
pdfAttachment = [];
}
}
email.send({
author: '<author>',
recipients: '<recipients>',
cc: '<ccMailId>',
subject: '<mailSubject>',
body: '<emailContent>',
attachments: pdfAttachment
});