It is not allowed to declare any Muslim an apostate for a sin he committed, or a mistake he made. Such as, an error related to differences surrounding issues of Ijtihad. Allah says in His noble book, “Forgive us our Lord. And to You is the final return.”