I think i know what may have happened, we use HestiaCP as well.
We have multiple PHP Versions Setup we found out we didnt have mailparse extentsion installed on PHP 8.2 but we initially installed it with 8.1, hence when we installed a new ITFlow instance we chose the later PHP version.
Just make sure all the installed versions of PHP have that mailparse extension installed