Praise be to Allah, the Lord of the Worlds; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions. We ask Allah to cure you and protect you from all misfortunes. We emphasize on seeking help from Allah and having unshakable trust in Him, He is the Best Protector and Most Merciful. Allah Says (interpretation of meaning): {Is not Allah Sufficient for His slave?}[39:36]. He also Says: {And if Allah touches you with harm, none can remove it but He, and if He touches you with good, then He is Able to do all things.}[6:17]. Allah also Says: {And He will provide him from (sources) he never could imagine. And whosoever puts his trust in Allah, then He will suffice him.}[65:3]. What you are enduring may be due to magic or evil eye or influence of jinn or merely a physical disease or complex thoughts etc. However, regardless of what it is, we would like to give you some guidelines that are useful in the case of magic, evil eye or epilepsy. First, give up all kinds of complex thoughts and delusions. They strike one only when his faith is distorted, or when he fails to have the strong trust in Allah, and does not have the sufficient knowledge of Shariah. Ibn Qayyim said: A bewitched person brings harm for himself because he gets attracted by something and heeds to it thus it overrides his heart due to his deep love and attraction. Second, using the legal incantations i.e. the verses of Qur'an and Prophetic supplications. Ibn al-Qayyim said: Among the Shariah incantations; frequently reciting the Mu'awwazatain (last two chapters from Qur'an), Surah al-Fatihah, Ayah al-Kursi and the supplications that are reported from the Prophet (Salla Allahu Alaihi Wa Sallam) such as "A'uzhu Bi Kalimati Allahit Tammati Min Sharri Ma Khalaq". (I seek refuge in the Perfect Words of Allah from the evil of what He has created"). And "A'uzhu Bi Kalimati Allahit Tammati Min Kulli Shaitanin Wa Hammatin Wa Min Kulli Aynin Laammtin". (I seek protection with Allah's perfect words from every Satan and crawling creature and every evil eye.'). Anyone who keeps on reciting the above supplications knows their benefits and even recognizes how badly a Muslim is in need of those supplications. In addition, one should bear in mind that the supplications are like a weapon which itself cannot bring any benefit rather the benefits depend on its user, how effectively he uses the weapon. Therefore, one should supplicate using the authentic supplications properly i.e. the heart should act in accordance with the tongue besides having strong faith in Allah. Third, reciting Qur'an, and authentic supplications upon the affected person could dispel the effect of magic and evil eye. Fourth, avoiding to become entrapped by jugglers and magicians who take away peoples' money wrongfully. Ahmad narrated that the Prophet said: Whoever goes to a soothsayer or a fortune-teller and believes him he has disbelieved in what was revealed to Muhammad (Peace and blessing be upon him). Fifth, being steadfast on the path of Shariah internally and externally. The Prophet (Salla Allahu Alaihi Wa Sallam) said: Do not go beyond the limits of Allah, Allah will protect you… [ al-Tirmizi ] Ibn al-Qayyim said: Most of the time evil Jinn affect only due to lack of sound Islamic knowledge and ruination of hearts. He also quoted from some Salaf as saying: If a heart is full of the remembrance of Allah and Satan comes near to such heart, he (the person) will strike down the Satan. The other Satans will come to their defeated fellow and ask about what happened to him? It will be said that the human being has affected him. So, a Mumin overcomes a Satan with his strong faith as reported in Musnad Ahmad that the Prophet (Salla Allahu Alaihi Wa Sallam) said: A Mumin emaciates his Satan as you emaciate your riding camel. Know that the conspiracy of Satan is very weak; nothing will befall you except what had already been decreed by Allah. So, by being steadfast on the path of Shariah, following the rulings of Shariah and avoiding the prohibitions you may protect yourself from Satans of Jinn as well as those of human beings.
Allah knows best.