Thank you for your question. Key to the problem of evil is the definition of evil. If there is any greater purpose, compensation or wisdom behind suffering it cannot be defined as unnecessary evil. For example, making your kids do their homework is not evil, as while your kids may think they are unnecessarily suffering, that suffering has a purpose. It also has compensation in that learning is good for the children and it is wise on behalf of the parents to put their children through the suffering of studying. So too other issues of evil can be framed such that they are not evil. For example, the trials and tribulations of the prophets (as) were for a purpose, were part of Divine Wisdom and will be rewarded in the next life. One of the main wisdom behind human evil, is that there is no meaningful free will if humans are prevented from carrying out that free will even if it results in evil.
May you always be successful